Class Priority

java.lang.Object
org.oristool.models.pn.Priority
All Implemented Interfaces:
TransitionFeature, Feature

public final class Priority extends Object implements TransitionFeature
Transition feature encoding the priority used to resolve races between immediate transitions.
  • Constructor Details

    • Priority

      public Priority(int priority)
  • Method Details

    • value

      public int value()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • maxPriority

      public static Set<Transition> maxPriority(Collection<Transition> transitions)
      Finds the subset of transitions with maximum priority.
      Parameters:
      transitions - a group of transitions
      Returns:
      true if the transition is enabled by the marking