Class FixedPriorityConflictResolver

    • Field Detail

      • priorities

        protected java.util.Map<RuleSpecification<?>,​java.lang.Integer> priorities
      • defaultPriority

        protected final int defaultPriority
        Since:
        2.1
    • Constructor Detail

      • FixedPriorityConflictResolver

        public FixedPriorityConflictResolver()
        Initializes the conflict resolver with a default priority of 0.
      • FixedPriorityConflictResolver

        public FixedPriorityConflictResolver​(int defaultPriority)
        Initializes the conflict resolver with a given default priority value
        Since:
        2.1
    • Method Detail

      • setPriority

        public void setPriority​(RuleSpecification<?> specification,
                                int priority)
        Sets the priority for the given specification. The activations of rules with the lowest priority value will be the next activations while rules with higher priority values will only be included in the conflicting activations set. The default priority is set when the resolver is created; if unspecified, it is 0.
        Parameters:
        specification -
        priority -