PlaceI
The PlaceI
class represents a discrete place (can hold tokens).
Value parameters
- tokens
-
the number of tokens per color
- x
-
the place's x-coordinate
- y
-
the place's y-coordinate
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Add tokens to 'this' discrete place.
Add tokens to 'this' discrete place.
Value parameters
- _token
-
the token vector to add
Attributes
Determine whether 'this' place holds at least the token vector (i.e., the requisite number of tokens of each color). Alternative: use threshold predicate in PetriNetRules
.
Determine whether 'this' place holds at least the token vector (i.e., the requisite number of tokens of each color). Alternative: use threshold predicate in PetriNetRules
.
Value parameters
- _token
-
the token vector
Attributes
Inherited methods
Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.
Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return the full identity.
Get the name.
Set the name.
Get the type of the simulation object.
Inherited fields
The globally unique integer identifier