Path
The Path
class provides a multi-lane pathway between two other components. The components in a Model
conceptually form a graph in which the edges are Transport
s or VTransport
s and the nodes are other Component
s. A Path
is a composite component that bundles several Transport
s or VTransport
s.
Value parameters
- bend
-
the bend or curvature of the
Path
(0 => line) - from
-
the starting component
- isSpeed
-
whether speed or trip-time is used for motion
- k
-
the number of lanes/transports in the path
- motion
-
the variate or dynamics model for the speed/trip-time for motion down the
Path
- name
-
the name of the path
- to
-
the ending component
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Give the location of the curve to be its starting point.
Change lanes from the current lane l1 to the new lane l2.
Change lanes from the current lane l1 to the new lane l2.
Value parameters
- l1
-
the actor's current lane
- l2
-
the actor's new lane
Attributes
Tell the animation engine to display this Transport
.
Tell the animation engine to display this Transport
.
Attributes
Determine whether it is safe to change to the new lane.
Determine whether it is safe to change to the new lane.
Value parameters
- displacement
-
the displacement (distance from start of the new lane)
- newLane
-
the desired new lane
Attributes
Return the number of lanes.
Return the number of lanes.
Attributes
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 path's lane(0) transport.
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 path's lane(0) transport.
Attributes
Set the direction/turn random variate in this path's lane(0) transport.
Set the direction/turn random variate in this path's lane(0) transport.
Value parameters
- selectorRV
-
the random variate used to select the direction
Attributes
Inherited methods
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 parameters
- value
-
the value to accumulate
Attributes
- Inherited from:
- Component
Aggregate the statistics of this component's subparts.
Set the location of this object.
Set the location of this object.
Value parameters
- at
-
the location of this object
Attributes
- Inherited from:
- Locatable
Indicate whether this component is composite, i.e., has subparts.
Indicate whether this component is composite, i.e., has subparts.
Attributes
- Inherited from:
- Component
Get the director who controls the play/simulation this component is in.
Get the director who controls the play/simulation this component is in.
Attributes
- Inherited from:
- Component
Set this component's director (the controller of the simulation model).
Set this component's director (the controller of the simulation model).
Value parameters
- director
-
the director of the play/simulation
Attributes
- Inherited from:
- Component
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).
Attributes
- Inherited from:
- Component
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
Initialize this component (all of its 'var's).
Initialize this component (all of its 'var's).
Value parameters
- label
-
the name of this component
- loc
-
the location of this component
Attributes
- Inherited from:
- Component
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Value parameters
- label
-
the name of this component
Attributes
- Inherited from:
- Component
Return the full identity.
Set the name.
Return time persistent statistics for value for this component (e.g. Number in queue).
Return time persistent statistics for value for this component (e.g. Number in queue).
Attributes
- Inherited from:
- Component
Get the type of the simulation object.
Inherited fields
The globally unique integer identifier