Transport

scalation.simulation.agent.Transport
See theTransport companion object
class Transport(name: String, director: Model, from: Vertex, to: Vertex, moveRV: Variate, prop: Property, shift1: VectorD, shift2: VectorD, shift: Int) extends Edge, EdgeAgents, Statistical

The Transport class provides a pathway between two vertices (motion on an edge).

Value parameters

director

the Model directing the simulation

from

the first/starting vertex

moveRV

the movement random variate

name

the name of this transport

prop

the properties (Map) of this transport

shift

the orthogonal shift of the edge - FIX - make shifting more uniform

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 second/ending vertex

Attributes

Companion
object
Graph
Supertypes
trait Statistical
trait EdgeAgents
class Edge
trait Serializable
trait Spatial
trait PartiallyOrdered[Spatial]
trait Identifiable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type AsPartiallyOrdered = Function1

Attributes

Inherited from:
PartiallyOrdered

Value members

Concrete methods

def move(agent: SimAgent, duration: Double, fraction: Double): Unit

Move the entity SimAgent smoothly down this transport. Repeatedly move it along the transport taking small steps each time.

Move the entity SimAgent smoothly down this transport. Repeatedly move it along the transport taking small steps each time.

Value parameters

agent

the agent who is moving along this transport

duration

the total time it will take agent to move over the transport

fraction

the fraction of the remaining transform to move along

Attributes

Inherited methods

def <[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <=[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >=[B >: Spatial : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def add(agent: SimAgent): ArrayDeque[SimAgent]

Add the given agent to the end of list (e.g., start of a transport).

Add the given agent to the end of list (e.g., start of a transport).

Value parameters

agent

the agent being added to the end

Attributes

Inherited from:
EdgeAgents

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:
Statistical
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 indexAt(loc: Double): Int

Find the agent whose distance down the edge is at least loc.

Find the agent whose distance down the edge is at least loc.

Value parameters

loc

the location at which the agent is sought (closest larger)

Attributes

Inherited from:
EdgeAgents
def indexOf(agent: SimAgent): Int

Find the given agent in the list and return its index position.

Find the given agent in the list and return its index position.

Value parameters

agent

the agent whose index is sought (< 0 => not found)

Attributes

Inherited from:
EdgeAgents
def indexWhere(p: SimAgent => Boolean): Int

Find the first agent in the list that satifies the given predicate and return its index position (< 0 => not found).

Find the first agent in the list that satifies the given predicate and return its index position (< 0 => not found).

Value parameters

p

the predicate to be satified

Attributes

Inherited from:
EdgeAgents
def insert(index: Int, agent: SimAgent): Unit

Insert the given agent at the specified index position.

Insert the given agent at the specified index position.

Value parameters

agent

the agent being added at the given position

Attributes

Inherited from:
EdgeAgents
def insertAfter(agent: SimAgent, agent2: SimAgent): Unit

Insert the given agent after agent2 in the list.

Insert the given agent after agent2 in the list.

Value parameters

agent

the new agent being added after agent2

agent2

the existing agent to insert it after

Attributes

Inherited from:
EdgeAgents
def me: String

Return the full identity.

Return the full identity.

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:
Statistical
def remove(agent: SimAgent): SimAgent

Remove the given agent from the list.

Remove the given agent from the list.

Value parameters

agent

the agent being removed from the list

Attributes

Inherited from:
EdgeAgents

Remove the first agent from the list.

Remove the first agent from the list.

Attributes

Inherited from:
EdgeAgents
def s_rescale(factor: Double): VectorD

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Value parameters

factor

the space rescaling factor

Attributes

Inherited from:
Spatial
override def toString: String

Convert this edge object to a string.

Convert this edge object to a string.

Attributes

Definition Classes
Edge -> Spatial -> Any
Inherited from:
Edge
def tryCompareTo[B >: Spatial : AsPartiallyOrdered](other: B): Option[Int]

Compare two spatial objects based on their space coordinates.

Compare two spatial objects based on their space coordinates.

Value parameters

other

the other item to compare with this item

Attributes

Inherited from:
Spatial
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable

Inherited fields

val id: Int

Attributes

Inherited from:
Identifiable
val pos: VectorD

Attributes

Inherited from:
Spatial
val tokens: Set[Topological]

Attributes

Inherited from:
Edge