Package org.oristool.models.pn
Class Priority
java.lang.Object
org.oristool.models.pn.Priority
- All Implemented Interfaces:
TransitionFeature
,Feature
Transition feature encoding the priority used to resolve races between
immediate transitions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Set<Transition>
maxPriority
(Collection<Transition> transitions) Finds the subset of transitions with maximum priority.toString()
int
value()
-
Constructor Details
-
Priority
public Priority(int priority)
-
-
Method Details
-
value
public int value() -
equals
-
hashCode
public int hashCode() -
toString
-
maxPriority
Finds the subset of transitions with maximum priority.- Parameters:
transitions
- a group of transitions- Returns:
true
if the transition is enabled by the marking
-