Recorder

scalation.simulation.process.Recorder
trait Recorder(nt: Int = ..., nLanes: Int = ...)

The Recorder trait allows Components/Nodes to easily record the flow of actors/entities (e.g., vehicles) in terms of counts and optionally average speed (or other property of interest).

Value parameters

nLanes

the number of lanes

nt

the number of time intervals (defaults to 60) 15-minute or 900-second intervals over 6:00 AM to 9:00 PM

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Junction
class Sink
class Source
class VSource

Members list

Value members

Concrete methods

Get the recorder matrices.

Get the recorder matrices.

Attributes

def record(ctime: Double, speed: Double, lane: Int): Unit

Record the entity and optionally its speed (or other property of interest).

Record the entity and optionally its speed (or other property of interest).

Value parameters

ctime

the clock time the entity entered the component (e.g., Junction, Sink)

lane

the lane the vehicle is in

speed

the speed at which entity entered the component (e.g., Junction, Sink)

Attributes

inline def record(actor: SimActor, ctime: Double): Unit

Record the vehicle entity and optionally its speed (or other property of interest).

Record the vehicle entity and optionally its speed (or other property of interest).

Value parameters

actor

the actor/vehicle being recorded

ctime

the clock time the entity entered the component (e.g., Junction, Sink)

Attributes