VTransport
The VTransport
class provides a variable-speed pathway between two other components. The components in a Model
conceptually form a 'graph' in which the edges are VTransport
s and the nodes are other Component
s.
Value parameters
- bend
-
the bend or curvature of the
VTransport
(0 => line) - from
-
the starting component
- isSpeed
-
whether speed or trip-time is used for motion
- motion
-
the dynamics model for the speed/trip-time for motion down the
VTransport
- name
-
the name of the variable-speed transport
- shift1
-
the x-y shift for the transport's first end-point (from-side)
- shift2
-
the x-y shift for the transport's second end-point (to-side)
- to
-
the ending component
Attributes
- See also
-
animation.Dgraph.move2Boundary
that aligns edge with node boundaries. - Graph
-
- Supertypes
-
class Transporttrait Componenttrait Locatabletrait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Calculate the (x, y) point in the simulation space for the vehicle.
Calculate the (x, y) point in the simulation space for the vehicle.
Value parameters
- s
-
the current displacement along the road of the vehicle.
Attributes
Get the first vehicle in Vtransport
(the first element in vtree).
Get the first vehicle in Vtransport
(the first element in vtree).
Attributes
Move the entity (SimActor) smoothly down this VTransport (e.g., road). Repeatedely move it along the VTransport/Edge/QCurve. Caveat: tokens coordinates are computed using a shadow QCurve (same coordinates as the one that will be created by the animation engine).
Move the entity (SimActor) smoothly down this VTransport (e.g., road). Repeatedely move it along the VTransport/Edge/QCurve. Caveat: tokens coordinates are computed using a shadow QCurve (same coordinates as the one that will be created by the animation engine).
Value parameters
- fraction
-
the fraction of the remaining transform to move along (defaults to 1.0)
Attributes
- Definition Classes
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
Tell the animation engine to display this transport.
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
Jump the entity SimActor
down this transport. Place it in the middle of the Transport
s QCurve
for the entire trip time.
Jump the entity SimActor
down this transport. Place it in the middle of the Transport
s QCurve
for the entire trip time.
Attributes
- Inherited from:
- Transport
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.