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
ConstructorDescriptionBuilds an empty state feature.Builds a deep copy of an input state feature. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
hashCode()
void
setCheckNewlyEnabled
(boolean checkNewlyEnabled) void
setDisabled
(Set<Transition> disabled) void
setEnabled
(Set<Transition> enabled) void
setMarking
(Marking marking) void
setNewlyEnabled
(Set<Transition> newlyEnabled) void
setPersistent
(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
-