Transport

scalation.simulation.process.Transport
class Transport(name: String, val from: Component, val to: Component, motion: Variate, isSpeed: Boolean, bend: Double, shift1: VectorD, shift2: VectorD) extends Component

The Transport class provides a 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.

Value parameters

bend

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

from

the starting component

isSpeed

whether speed or trip-time is used for motion

motion

the random variate for the speed/trip-time for motion down the Transport

name

the name of the 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
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class VTransport

Members list

Value members

Concrete methods

override 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.

Attributes

Definition Classes
def display(): Unit

Tell the animation engine to display this transport.

Tell the animation engine to display this transport.

Attributes

def jump(): Unit

Jump the entity SimActor down this transport. Place it in the middle of the Transports QCurve for the entire trip time.

Jump the entity SimActor down this transport. Place it in the middle of the Transports QCurve for the entire trip time.

Attributes

def move(fraction: Double): Unit

Move the entity SimActor smoothly down this transport. Repeatedly move it along the Transports 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 transport. Repeatedly move it along the Transports 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

Attributes

Inherited methods

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 parameters

value

the value to accumulate

Attributes

Inherited from:
Component
def aggregate(): Unit

Aggregate the statistics of this component's subparts.

Aggregate the statistics of this component's subparts.

Attributes

Inherited from:
Component
def at_=(at: Array[Double]): Unit

Set the location of this object.

Set the location of this object.

Value parameters

at

the location of this object

Attributes

Inherited from:
Locatable
def composite: Boolean

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
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).

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
override def equals(that: Any): Boolean

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
override def hashCode: Int

Return the hashCode as the unique id.

Return the hashCode as the unique id.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
def initComponent(label: String, loc: Array[Double]): Unit

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
protected def initStats(label: String): Unit

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

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

Value parameters

label

the name of this component

Attributes

Inherited from:
Component
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def name_=(name: String): Unit

Set the name.

Set the name.

Value parameters

name

the name to assign

Attributes

Inherited from:
Identifiable

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
def simType: String

Get the type of the simulation object.

Get the type of the simulation object.

Attributes

Inherited from:
Identifiable
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.

Value parameters

duration

the time duration

Attributes

Inherited from:
Component

Concrete fields

val to: Component

Inherited fields

val id: Int

The globally unique integer identifier

The globally unique integer identifier

Attributes

Inherited from:
Identifiable