Class TopicMapSynchronizer


  • public class TopicMapSynchronizer
    extends Object
    PUBLIC: Implementation of the TMSync algorithm.
    Since:
    3.1.1
    • Constructor Detail

      • TopicMapSynchronizer

        public TopicMapSynchronizer()
    • Method Detail

      • update

        public static void update​(TopicMapIF target,
                                  TopicIF source)
        PUBLIC: Updates the target topic map against the source topic, including all characteristics from the source topic.
      • update

        public static void update​(TopicMapIF target,
                                  TopicIF source,
                                  Predicate<TMObjectIF> tfilter)
        PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target that are accepted by the filter.
      • update

        public static void update​(TopicMapIF target,
                                  TopicIF source,
                                  Predicate<TMObjectIF> tfilter,
                                  Predicate<TMObjectIF> sfilter)
        PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target and source that are accepted by the filters.
        Parameters:
        target - the topic map to update
        source - the topic to get updates from
        tfilter - filter for the target characteristics to update
        sfilter - filter for the source characteristics to include
        Since:
        3.2.0
      • update

        public static void update​(TopicMapIF target,
                                  String ttopicq,
                                  Predicate<TMObjectIF> tchard,
                                  TopicMapIF source,
                                  String stopicq,
                                  Predicate<TMObjectIF> schard)
                           throws InvalidQueryException
        PUBLIC: Updates the target topic map from the source topic map, synchronizing the selected topics in the target (ttopicq) with the selected topics in the source (stopicq) using the deciders to filter topic characteristics to synchronize.
        Parameters:
        target - the topic map to update
        ttopicq - tolog query selecting the target topics to update
        tchard - filter for the target characteristics to update
        source - the source topic map
        stopicq - tolog query selecting the source topics to use
        schard - filter for the source characteristics to update
        Throws:
        InvalidQueryException