The Junction
class provides a connector between two pathways. Since Lines
and QCurves
have limitations (e.g., hard to make a loop back), a junction may be needed. Also, may be used to model road segments connected by junctions or placements of sensors.
Value parameters
- at
-
the location of the junction (x, y, w, h)
- jTime
-
the jump-time through the junction
- name
-
the name of the junction
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Recordertrait Componenttrait Locatabletrait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
Auxiliary constructor that uses defaults for width w and height h, as well as jTime.
Auxiliary constructor that uses defaults for width w and height h, as well as jTime.
Value parameters
- jTime
-
the jump-time through the junction
- name
-
the name of the junction
- xy
-
the (x, y) coordinates for the top-left corner of the junction
Attributes
Concrete methods
Tell the animation engine to display this Junction.
Tell the animation engine to display this Junction.
Attributes
Jump the entity SimActor
from the incoming "from" pathway to the the middle of the junction.
Jump the entity SimActor
from the incoming "from" pathway to the the middle of the junction.
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
Record the entity and optionally its speed.
Record the entity and optionally its speed.
Value parameters
- ctime
-
the clock time the entity entered the component (e.g., Sink)
- speed
-
the speed at which entity entered the component (e.g., Sink)
Attributes
- Inherited from:
- Recorder
Get the type of the simulation object.
Inherited fields
The globally unique integer identifier