Package org.oristool.models.pn
Class PetriStateFeature
java.lang.Object
org.oristool.models.pn.PetriStateFeature
- All Implemented Interfaces:
StateFeature,Feature
A feature collecting state information of a Petri net.
The feature includes a marking and the set of enabled, disabled, persistent and newly-enabled transitions.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty state feature.Builds a deep copy of an input state feature. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()voidsetCheckNewlyEnabled(boolean checkNewlyEnabled) voidsetDisabled(Set<Transition> disabled) voidsetEnabled(Set<Transition> enabled) voidsetMarking(Marking marking) voidsetNewlyEnabled(Set<Transition> newlyEnabled) voidsetPersistent(Set<Transition> persistent) toString()
-
Constructor Details
-
PetriStateFeature
public PetriStateFeature()Builds an empty state feature. -
PetriStateFeature
Builds a deep copy of an input state feature.- Parameters:
other- another state feature
-
-
Method Details
-
checkNewlyEnabled
public boolean checkNewlyEnabled() -
setCheckNewlyEnabled
public void setCheckNewlyEnabled(boolean checkNewlyEnabled) -
getMarking
-
setMarking
-
getDisabled
-
setDisabled
-
getPersistent
-
setPersistent
-
getNewlyEnabled
-
setNewlyEnabled
-
getEnabled
-
setEnabled
-
equals
-
hashCode
public int hashCode() -
toString
-