Class InvertedDisappearancePriorityConflictResolver

  • All Implemented Interfaces:
    ConflictResolver

    public class InvertedDisappearancePriorityConflictResolver
    extends FixedPriorityConflictResolver
    A conflict resolver implementation that assigns a fixed priority for each RuleSpecification it understands, and uses this priority for the appeared activations, while uses the inverse of this for the disappeared events.

    This conflict resolver is especially useful to make sure all deletions precede the creation of new model elements.

    NOTE: It is not recommended to use rules of zero priority with this conflict resolver, as in that case the order of additions and deletions is unspecified. For this reason, starting VIATRA version 2.1 a default priority of 1 is used instead.

    Since:
    1.0
    • Constructor Detail

      • InvertedDisappearancePriorityConflictResolver

        public InvertedDisappearancePriorityConflictResolver()
        Initializes the conflict resolver with a default rule priority of 1.
      • InvertedDisappearancePriorityConflictResolver

        public InvertedDisappearancePriorityConflictResolver​(int defaultPriority)
        Initializes the conflict resolver with the specified default rule priority.
        Since:
        2.1