Packages

class PlaceI extends Identifiable

The PlaceI class represents a discrete place (can hold tokens).

Linear Supertypes
Identifiable, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlaceI
  2. Identifiable
  3. Error
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. def add(_tokens: VectorI): Unit

    Add tokens to 'this' discrete place.

  2. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  3. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  4. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  5. 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.

  6. val id: Int
    Definition Classes
    Identifiable
  7. def me: String
    Definition Classes
    Identifiable
  8. def name: String
    Definition Classes
    Identifiable
  9. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  10. def simType: String
    Definition Classes
    Identifiable
  11. def take(_tokens: VectorI): Unit

    Take tokens from 'this' discrete place.

  12. var tokens: VectorI
  13. val x: Double
  14. val y: Double