class PlaceI extends Identifiable
The PlaceI
class represents a discrete place (can hold tokens).
- Alphabetic
- By Inheritance
- PlaceI
- Identifiable
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PlaceI(x: Double, y: Double, tokens: VectorI, stays: Boolean = false)
- x
the place's x-coordinate
- y
the place's y-coordinate
- tokens
the number of tokens per color
- stays
whether the tokens stay (test arc)
Value Members
-
def
add(_tokens: VectorI): Unit
Add tokens to 'this' discrete place.
-
def
equals(that: Any): Boolean
- Definition Classes
- Identifiable → AnyRef → Any
-
final
def
flaw(method: String, message: String): Unit
- Definition Classes
- Error
-
def
hashCode(): Int
- Definition Classes
- Identifiable → AnyRef → Any
-
def
holds(_tokens: VectorI): Boolean
Determine whether 'this' place holds at least the token vector (i.e., the requisite number of tokens of each color).
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
. -
val
id: Int
- Definition Classes
- Identifiable
-
def
me: String
- Definition Classes
- Identifiable
-
def
name: String
- Definition Classes
- Identifiable
-
def
name_=(name: String): Unit
- Definition Classes
- Identifiable
-
def
simType: String
- Definition Classes
- Identifiable
-
def
take(_tokens: VectorI): Unit
Take tokens from 'this' discrete place.
- var tokens: VectorI
- val x: Double
- val y: Double