Route

scalation.simulation.agent.Route
class Route(_name: String, director: Model, k: Int, from: Vertex, to: Vertex, moveRV: Variate, prop: Property) extends Identifiable

The Route class provides a multi-lane pathway between two vertices (motion on multiple edges). A Route is a composite edge that bundles several Transports.

Value parameters

_name

the name of the route

director

the Model directing the simulation

from

the starting vertex

k

the number of lanes/transports in the route

moveRV

the movement random variate

prop

the properties (Map) of this transport

to

the ending vertex

Attributes

Graph
Supertypes
trait Identifiable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def changeLane(agent: SimAgent, l1: Int, l2: Int): SimAgent

Change lanes for the current lane l1 to the new lane l2 and return the agent ahead.

Change lanes for the current lane l1 to the new lane l2 and return the agent ahead.

Value parameters

agent

the agent changing lanes

l1

the agent's current lane

l2

the agent's new lane

Attributes

Inherited methods

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 me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def name: String

Get the name.

Get the name.

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

Get the type of the simulation object.

Get the type of the simulation object.

Attributes

Inherited from:
Identifiable

Concrete fields

val lane: Array[Transport]

Inherited fields

val id: Int

The globally unique integer identifier

The globally unique integer identifier

Attributes

Inherited from:
Identifiable