Packages

class Route extends Component

The Route class provides a multi-lane pathway between two other components. The components in a Model conceptually form a graph in which the edges are Transports and the nodes are other Components. A Route is a composite component that bundles several Transports.

Linear Supertypes
Component, Locatable, Identifiable, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Route
  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 Route(name: String, k: Int, from: Component, to: Component, motion: Variate, isSpeed: Boolean = false, angle: Double = 0.0, bend: Double = 0.0)

    name

    the name of the route

    k

    the number of lanes/transports in the route

    from

    the starting component

    to

    the ending component

    motion

    the speed/trip-time to move down the transports in the route

    isSpeed

    whether speed or trip-time is used for motion

    angle

    angle in radians of direction (0 => east, Pi/2 => north, Pi => west, 3Pi/2 => south)

    bend

    the bend or curvature of the route (0 => line)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val DIAM: Double

    Diameter of a token (for animating entities)

    Diameter of a token (for animating entities)

    Definition Classes
    Component
  5. val RAD: Double

    Radius of a token (for animating entities)

    Radius of a token (for animating entities)

    Definition Classes
    Component
  6. 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
  7. def aggregate(): Unit

    Aggregate the statistics of this component's subparts.

    Aggregate the statistics of this component's subparts.

    Definition Classes
    Component
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def at: Array[Double]

    Give the location of the curve to be its starting point.

    Give the location of the curve to be its starting point.

    Definition Classes
    Route → Locatable
  10. def at_=(at: Array[Double]): Unit
    Definition Classes
    Locatable
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. 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
  13. 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
  14. 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
  15. def display(): Unit

    Tell the animation engine to display 'this' Transport.

    Tell the animation engine to display 'this' Transport.

    Definition Classes
    RouteComponent
  16. 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
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  21. val from: Component
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  24. val id: Int
    Definition Classes
    Identifiable
  25. 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
  26. 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
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. val lane: Array[Transport]
  29. def me: String
    Definition Classes
    Identifiable
  30. def name: String
    Definition Classes
    Identifiable
  31. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  35. 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
  36. def selector: Variate

    Get the direction/turn random variate to determine next the direction.

    Get the direction/turn random variate to determine next the direction. This allows an application model to select the next component. The decision is delegated to 'this' route's lane(0) transport.

  37. def selector_=(selector: Variate): Unit

    Set the direction/turn random variate in 'this' route's lane(0) transport.

  38. def simType: String
    Definition Classes
    Identifiable
  39. 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
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. 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
  42. val to: Component
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Component

Inherited from Locatable

Inherited from Identifiable

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped