Package org.oristool.analyzer.policy
Class PriorityPolicy
java.lang.Object
org.oristool.analyzer.policy.PriorityPolicy
- All Implemented Interfaces:
EnumerationPolicy
Priority enumeration policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Succession succession) Adds the succession child as a new state to be explored.boolean
isEmpty()
Checks whether the set of states to explore is empty.remove()
Extracts a succession: its child node is the next state to be explored.
-
Constructor Details
-
PriorityPolicy
-
-
Method Details
-
add
Description copied from interface:EnumerationPolicy
Adds the succession child as a new state to be explored.- Specified by:
add
in interfaceEnumerationPolicy
- Parameters:
succession
- succession to be added
-
remove
Description copied from interface:EnumerationPolicy
Extracts a succession: its child node is the next state to be explored.- Specified by:
remove
in interfaceEnumerationPolicy
- Returns:
- succession with next state
-
isEmpty
public boolean isEmpty()Description copied from interface:EnumerationPolicy
Checks whether the set of states to explore is empty.- Specified by:
isEmpty
in interfaceEnumerationPolicy
- Returns:
- true if no more states should be explored.
-