Packages

class Junction extends Component

The Junction class provides a connector between two Transports/Routes. Since Lines and QCurves have limitations (e.g., hard to make a loop back), a junction may be needed.

Linear Supertypes
Component, Locatable, Identifiable, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Junction
  2. Component
  3. Locatable
  4. Identifiable
  5. Error
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Junction(name: String, director: Model, jTime: Variate, xy: (Double, Double))

    Auxiliary constructor that uses defaults for width 'w' and height 'h'.

    Auxiliary constructor that uses defaults for width 'w' and height 'h'.

    name

    the name of the junction

    director

    the director controlling the model

    jTime

    the jump-time through the junction

    xy

    the (x, y) coordinates for the top-left corner of the junction

  2. new Junction(name: String, director: Model, jTime: Variate, at: Array[Double])

    name

    the name of the junction

    director

    the director controlling the model

    jTime

    the jump-time through the junction

    at

    the location of the junction (x, y, w, h)

Value Members

  1. val DIAM: Double

    Diameter of a token (for animating entities)

    Diameter of a token (for animating entities)

    Definition Classes
    Component
  2. val RAD: Double

    Radius of a token (for animating entities)

    Radius of a token (for animating entities)

    Definition Classes
    Component
  3. def accum(value: Double): Unit

    Accumulate the value (e.g., number in queue) weighted by its time duration.

    Accumulate the value (e.g., number in queue) weighted by its time duration.

    value

    the value to accumulate

    Definition Classes
    Component
  4. def aggregate(): Unit

    Aggregate the statistics of this component's subparts.

    Aggregate the statistics of this component's subparts.

    Definition Classes
    Component
  5. def at: Array[Double]
    Definition Classes
    Locatable
  6. def at_=(at: Array[Double]): Unit
    Definition Classes
    Locatable
  7. def composite: Boolean

    Indicate whether this component is composite, i.e., has subparts.

    Indicate whether this component is composite, i.e., has subparts.

    Definition Classes
    Component
  8. def director: Model

    Get the director who controls the play/simulation this component is in.

    Get the director who controls the play/simulation this component is in.

    Definition Classes
    Component
  9. def director_=(director: Model): Unit

    Set this component's director (the controller of the simulation model).

    Set this component's director (the controller of the simulation model).

    director

    the director of the play/simulation

    Definition Classes
    Component
  10. def display(): Unit

    Tell the animation engine to display this Junction.

    Tell the animation engine to display this Junction.

    Definition Classes
    JunctionComponent
  11. def durationStat: Statistic

    Return sample statistics for durations for this component (e.g., Time in queue).

    Return sample statistics for durations for this component (e.g., Time in queue).

    Definition Classes
    Component
  12. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  13. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  14. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  15. val id: Int
    Definition Classes
    Identifiable
  16. def initComponent(label: String, loc: Array[Double]): Unit

    Initialize this component (all of its 'var's).

    Initialize this component (all of its 'var's).

    label

    the name of this component

    loc

    the location of this component

    Definition Classes
    Component
  17. def initStats(label: String): Unit

    Initialize this component's statistical collectors.

    Initialize this component's statistical collectors. Sample statistics: all Components. Time-persistent statistics: all except Gate, Source and Sink.

    label

    the name of this component

    Definition Classes
    Component
  18. def jump(): Unit

    Jump the entity SimActor from the incoming "from" transport to the the middle of the junction.

  19. def me: String
    Definition Classes
    Identifiable
  20. def name: String
    Definition Classes
    Identifiable
  21. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  22. def persistentStat: TimeStatistic

    Return time persistent statistics for value for this component (e.g.

    Return time persistent statistics for value for this component (e.g. Number in queue).

    Definition Classes
    Component
  23. def simType: String
    Definition Classes
    Identifiable
  24. val subpart: ListBuffer[Component]

    List of subparts of the Component (empty for atomic components, nonempty for composites)

    List of subparts of the Component (empty for atomic components, nonempty for composites)

    Definition Classes
    Component
  25. def tally(duration: Double): Unit

    Tally the duration (e.g., waiting time) of an activity or delay.

    Tally the duration (e.g., waiting time) of an activity or delay.

    duration

    the time duration

    Definition Classes
    Component