scalation.simulation.process

Members list

Type members

Classlikes

abstract class Bus(name: String, director: Model, lTime: Variate, cap: Int) extends SimActor

The Bus class is used to collect multiple actors together for transporting. The act method must be specified in each subclass where the bus route is specified.

The Bus class is used to collect multiple actors together for transporting. The act method must be specified in each subclass where the bus route is specified.

Value parameters

cap

the capacity of this bus

director

the director controlling the model

lTime

the loading/unloading time

name

the name of this bus

Attributes

Supertypes
class SimActor
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
class UGA_Bus

The Component trait provides basic common feature for simulation components. The list of subparts is empty for atomic components and nonempty for composite components. Identifiable has "name" the name of this component Locatable has "at" the location of this component

The Component trait provides basic common feature for simulation components. The list of subparts is empty for atomic components and nonempty for composite components. Identifiable has "name" the name of this component Locatable has "at" the location of this component

Attributes

Supertypes
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Known subtypes
class Gate
class Junction
class Model
class BankModel
class LoopModel
class MachineModel
class RoadModel
class TrafficModel
class UGA_BusModel
class BankModel
class Model_MBM
class BankModel
class Path
class Resource
class Route
class Sink
class Source
class VSource
class Transport
class VTransport
class WaitQueue
Show all
trait Dynamics

The Dynamics trait supports physics models for the motion of vehicles, e.g., car-following models.

The Dynamics trait supports physics models for the motion of vehicles, e.g., car-following models.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object GippsDynamics
object IDMDynamics
class Vehicle
class Car
class Gate(name: String, director: Model, line: WaitQueue, units: Int, onTime: Variate, offTime: Variate, loc: Array[Double], shut0: Boolean, cap: Int) extends SimActor, Component

The Gate class models the operation of gate that can open and shut. When the gate is open, entities can flow through and when shut, they cannot. They may wait in a queue or go elsewhere. A gate can model a traffic light (green => open, red => shut).

The Gate class models the operation of gate that can open and shut. When the gate is open, entities can flow through and when shut, they cannot. They may wait in a queue or go elsewhere. A gate can model a traffic light (green => open, red => shut).

Value parameters

cap

the maximum number of entities that will be released when the gate is opened

director

the model/container for this gate

line

the queue holding entities waiting for this gate to open

loc

the location of the Gate (x, y, w, h)

name

the name of the gate

offTime

distribution of time that gate will be closed

onTime

distribution of time that gate will be open

shut0

Boolean indicating if the gate is initially opened or closed

units

number of units/phases of operation

Attributes

Companion
object
Supertypes
trait Component
class SimActor
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
object Gate

The Gate companion object provides a builder method for gates.

The Gate companion object provides a builder method for gates.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Gate.type
object GippsDynamics extends Dynamics

The GippsDynamics object provides equations for the Gipps car-following model.

The GippsDynamics object provides equations for the Gipps car-following model.

Attributes

See also
Supertypes
trait Dynamics
class Object
trait Matchable
class Any
Self type
object IDMDynamics extends Dynamics

The IDMDynamics object provides equations for the Intelligent Driver Model (IDM) car-following model.

The IDMDynamics object provides equations for the Intelligent Driver Model (IDM) car-following model.

Attributes

See also
Supertypes
trait Dynamics
class Object
trait Matchable
class Any
Self type
class Junction(name: String, jTime: Variate, at: Array[Double]) extends Component, Recorder

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.

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
Supertypes
trait Recorder
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
object Junction

The Junction companion object provides a factory method for junctions.

The Junction companion object provides a factory method for junctions.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Junction.type
class Model(name: String, val reps: Int, animating: Boolean, aniRatio: Double, val full: Boolean, weight: Int, height: Int) extends Coroutine, Completion, Modelable, Component

The Model class maintains a list of components making up the model and controls the flow of entities (SimActors) through the model, following the process-interaction world-view. It maintains a time-ordered priority queue to activate/re-activate each of the entities. Each entity (SimActor) is implemented as a Coroutine and may be thought of as running in its own thread.

The Model class maintains a list of components making up the model and controls the flow of entities (SimActors) through the model, following the process-interaction world-view. It maintains a time-ordered priority queue to activate/re-activate each of the entities. Each entity (SimActor) is implemented as a Coroutine and may be thought of as running in its own thread.

Value parameters

aniRatio

the ratio of simulation speed vs. animation speed

animating

whether to animate the model

full

generate a full report with both sample and time-persistent statistics

height

the height of the animation panel

name

the name of the simulation model

reps

the number of independent replications to run

width

the width of the animation panel

Attributes

Companion
object
Supertypes
trait Component
trait Locatable
trait Identifiable
trait Modelable
trait Completion
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
object Model

The Model companion object provides a shutdown method.

The Model companion object provides a shutdown method.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Model.type
class Model_MBM(name: String, val nBatch: Int, sizeB: Int, animating: Boolean, aniRatio: Double, full: Boolean) extends Model

The Model_MBM class maintains a list of components making up the model and controls the flow of entities (SimActors) through the model, following the process-interaction world-view. It maintains a time-ordered priority queue to activate/re-activate each of the entities. Each entity (SimActor) is implemented as a Scala Actor and may be thought of as running in its own thread. This derived class replaces the default Method of Independent Replivations with the Method of Batch Means.

The Model_MBM class maintains a list of components making up the model and controls the flow of entities (SimActors) through the model, following the process-interaction world-view. It maintains a time-ordered priority queue to activate/re-activate each of the entities. Each entity (SimActor) is implemented as a Scala Actor and may be thought of as running in its own thread. This derived class replaces the default Method of Independent Replivations with the Method of Batch Means.

Value parameters

aniRatio

the ratio of simulation speed vs. animation speed

animating

whether to animate the model

full

generate a full report with both sample and time-persistent statistics

nBatch

the number of batches to run

name

the name of the simulation model

sizeB

the size of each batch

Attributes

Supertypes
class Model
trait Component
trait Locatable
trait Identifiable
trait Modelable
trait Completion
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
class BankModel
class Path(name: String, k: Int, val from: Component, val to: Component, motion: Variate | Dynamics, isSpeed: Boolean, bend: Double) extends Component

The Path class provides a multi-lane pathway between two other components. The components in a Model conceptually form a graph in which the edges are Transports or VTransports and the nodes are other Components. A Path is a composite component that bundles several Transports or VTransports.

The Path class provides a multi-lane pathway between two other components. The components in a Model conceptually form a graph in which the edges are Transports or VTransports and the nodes are other Components. A Path is a composite component that bundles several Transports or VTransports.

Value parameters

bend

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

from

the starting component

isSpeed

whether speed or trip-time is used for motion

k

the number of lanes/transports in the path

motion

the variate or dynamics model for the speed/trip-time for motion down the Path

name

the name of the path

to

the ending component

Attributes

Supertypes
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
trait Recorder(nt: Int)

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

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

Value parameters

nt

the number of time intervals

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Junction
class Sink
class Source
class VSource
class Resource(name: String, line: WaitQueue, var units: Int, serviceTime: Variate, at: Array[Double]) extends Component

The Resource class provides services to entities (SimActors). It may or may not have an associated waiting queue.

The Resource class provides services to entities (SimActors). It may or may not have an associated waiting queue.

Value parameters

at

the location of the resource (x, y, w, h)

line

the line/queue where entities wait

name

the name of the resource

serviceTime

the service time distribution

units

the number of service units (e.g., bank tellers)

Attributes

Companion
object
Supertypes
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
object Resource

The Resource companion object provides a builder method for resources.

The Resource companion object provides a builder method for resources.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Resource.type
class Route(name: String, j: Int, k: Int, val from: Component, val to: Component, motion: Variate | Dynamics, isSpeed: Boolean, bend: Double) extends Component

The Route class provides a multi-stage, multi-lane pathway between two other components where the Paths are stitched together with Junctions.

The Route class provides a multi-stage, multi-lane pathway between two other components where the Paths are stitched together with Junctions.

Value parameters

bend

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

from

the starting component

isSpeed

whether speed or trip-time is used for motion

j

the number of paths in the route

k

the number of lanes/transports in the route

motion

the variate or dynamics model for the speed/trip-time for motion down the Route

name

the name of the route

to

the ending component

Attributes

Supertypes
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
abstract class SimActor(label: String, director: Model, val prop: Map[String, Double]) extends Coroutine, Temporal, Ordered[SimActor], Locatable

The SimActor abstract class represents entities that are active in the model. The act abstract method, which specifies entity behavior, must be defined for each subclass. Each SimActor extends ScalaTion's Coroutine class and may be roughly thought of as running in its own thread.

The SimActor abstract class represents entities that are active in the model. The act abstract method, which specifies entity behavior, must be defined for each subclass. Each SimActor extends ScalaTion's Coroutine class and may be roughly thought of as running in its own thread.

Value parameters

director

the director controlling the model

label

the label/name of the entity (SimActor)

prop

the properties (Map) for this actor, e.g., speed, color, weight

Attributes

Companion
object
Supertypes
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Customer
class Call
class Patient
class Car1
class Car2
class Part
class Car
class Car1
class Car2
class Car
class Car
class Car
class Car
class Rider
class Customer
class Customer
class Bus
class UGA_Bus
class Gate
class Source
class VSource
class Vehicle
class Car
Show all
object SimActor

The SimActor companion object holds the ACTOR LIST and provides methods for adding and removing actors from the list. These methods should be called in the application models to give users full control. For example, in a traffic model, if a car stays in the same lane over a complete Route (multiple road segments), the car should be added to the alist at the beginning of the route and removed only at the end. Any lane changes or turns will require changes in the actor list.

The SimActor companion object holds the ACTOR LIST and provides methods for adding and removing actors from the list. These methods should be called in the application models to give users full control. For example, in a traffic model, if a car stays in the same lane over a complete Route (multiple road segments), the car should be added to the alist at the beginning of the route and removed only at the end. Any lane changes or turns will require changes in the actor list.

Attributes

See also

myNode in SimActor class.

routeTest main function for example of use of alist.

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
SimActor.type
class Sink(name: String, at: Array[Double]) extends Component, Recorder

The Sink class is used to terminate entities SimActors when they are finished.

The Sink class is used to terminate entities SimActors when they are finished.

Value parameters

at

the location of the sink (x, y, w, h)

name

the name of the sink

Attributes

Companion
object
Supertypes
trait Recorder
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
object Sink

The Sink companion object provides a builder method for sinks.

The Sink companion object provides a builder method for sinks.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Sink.type
class Source(name: String, director: Model, makeEntity: () => SimActor, esubtype: Int, units: Int, iArrivalTime: Variate, loc: Array[Double]) extends SimActor, Component, Recorder

The Source class is used to periodically inject entities (SimActors) into a running simulation model. May act as an arrival generator. Source is both a simulation Component and special SimActor and therefore runs in own thread.

The Source class is used to periodically inject entities (SimActors) into a running simulation model. May act as an arrival generator. Source is both a simulation Component and special SimActor and therefore runs in own thread.

Value parameters

director

the director controlling the model

esubtype

indicator of the subtype of the entities to be made

iArrivalTime

the inter-arrival time distribution

loc

the location of the source (x, y, w, h)

makeEntity

the function to make entities of a specified type

name

the name of the source

units

the number of entities to make

Attributes

Companion
object
Supertypes
trait Recorder
trait Component
class SimActor
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
class VSource
object Source

The Source companion object provides a builder method for sources.

The Source companion object provides a builder method for sources.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Source.type
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.

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.

Supertypes
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
Known subtypes
class VTransport
class VSource(name: String, director: Model, makeEntity: () => Vehicle, esubtype: Int, units: Int, iArrivalTime: Variate, loc: Array[Double]) extends Source

The VSource class is used to periodically inject entities (Vehicles) into a running simulation model. May act as an arrival generator. VSource is both a simulation Component and special SimActor and therefore runs in own thread.

The VSource class is used to periodically inject entities (Vehicles) into a running simulation model. May act as an arrival generator. VSource is both a simulation Component and special SimActor and therefore runs in own thread.

Value parameters

director

the director controlling the model

esubtype

indicator of the subtype of the entities to be made

iArrivalTime

the inter-arrival time distribution

loc

the location of the source (x, y, w, h)

makeEntity

the function to make entities of a specified type

name

the name of the source

units

the number of entities to make

Attributes

Companion
object
Supertypes
class Source
trait Recorder
trait Component
class SimActor
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
object VSource

The VSource companion object provides a builder method for sources.

The VSource companion object provides a builder method for sources.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
VSource.type
class VTransport(name: String, from_: Component, to_: Component, motion: Dynamics, isSpeed: Boolean, bend: Double, shift1: VectorD, shift2: VectorD) extends Transport

The VTransport class provides a variable-speed pathway between two other components. The components in a Model conceptually form a 'graph' in which the edges are VTransports and the nodes are other Components.

The VTransport class provides a variable-speed pathway between two other components. The components in a Model conceptually form a 'graph' in which the edges are VTransports and the nodes are other Components.

Value parameters

bend

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

from

the starting component

isSpeed

whether speed or trip-time is used for motion

motion

the dynamics model for the speed/trip-time for motion down the VTransport

name

the name of the variable-speed 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.

Supertypes
class Transport
trait Component
trait Locatable
trait Identifiable
class Object
trait Matchable
class Any
Show all
object Vehicle

The Vehicle object contains driver/vehicle characteristics/properties.

The Vehicle object contains driver/vehicle characteristics/properties.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Vehicle.type
abstract class Vehicle(name_: String, director: Model) extends SimActor, Dynamics

The Vehicle class extends the SimActor and represents a vehicle in motion.

The Vehicle class extends the SimActor and represents a vehicle in motion.

Value parameters

director

the model to which this vehicle belongs

name_

the name of the vehicle

Attributes

Companion
object
Supertypes
trait Dynamics
class SimActor
trait Locatable
trait Ordered[SimActor]
trait Comparable[SimActor]
trait Temporal
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Car
class WaitQueue(name: String, at: Array[Double], cap: Int) extends Queue[SimActor], Component

The WaitQueue class is a wrapper for Scala's Queue class, which supports First-Come, First-Serve 'FCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimActors) attempting to enter the queue are 'barred'. At the model level, such entities may be (1) held in place, (2) take an alternate route, or (3) be lost (e.g., dropped call/packet).

The WaitQueue class is a wrapper for Scala's Queue class, which supports First-Come, First-Serve 'FCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimActors) attempting to enter the queue are 'barred'. At the model level, such entities may be (1) held in place, (2) take an alternate route, or (3) be lost (e.g., dropped call/packet).

Value parameters

at

the location of the wait-queue (x, y, w, h)

cap

the capacity of the queue (defaults to unbounded)

name

the name of the wait-queue

Attributes

Companion
object
Supertypes
trait Component
trait Locatable
trait Identifiable
class Queue[SimActor]
class ArrayDeque[SimActor]
trait DefaultSerializable
trait Serializable
trait ArrayDequeOps[SimActor, Queue, Queue[SimActor]]
trait StrictOptimizedSeqOps[SimActor, Queue, Queue[SimActor]]
trait StrictOptimizedIterableOps[SimActor, Queue, Queue[SimActor]]
trait IndexedBuffer[SimActor]
trait IndexedSeq[SimActor]
trait IndexedSeqOps[SimActor, Queue, Queue[SimActor]]
trait IndexedSeq[SimActor]
trait IndexedSeqOps[SimActor, Queue, Queue[SimActor]]
class AbstractBuffer[SimActor]
trait Buffer[SimActor]
trait Shrinkable[SimActor]
trait Growable[SimActor]
trait Clearable
class AbstractSeq[SimActor]
trait Seq[SimActor]
trait SeqOps[SimActor, Queue, Queue[SimActor]]
trait Cloneable[Queue[SimActor]]
trait Cloneable
trait Iterable[SimActor]
class AbstractSeq[SimActor]
trait Seq[SimActor]
trait Equals
trait SeqOps[SimActor, Queue, Queue[SimActor]]
trait PartialFunction[Int, SimActor]
trait Int => SimActor
class AbstractIterable[SimActor]
trait Iterable[SimActor]
trait IterableFactoryDefaults[SimActor, Queue]
trait IterableOps[SimActor, Queue, Queue[SimActor]]
trait IterableOnceOps[SimActor, Queue, Queue[SimActor]]
trait IterableOnce[SimActor]
class Object
trait Matchable
class Any
Show all
object WaitQueue

The WaitQueue companion object provides a builder method for wait-queues.

The WaitQueue companion object provides a builder method for wait-queues.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
WaitQueue.type
class WaitQueue_LCFS(name: String, at: Array[Double], cap: Int) extends Stack[SimActor], Component

The WaitQueue_LCFS class is a wrapper for Scala's Stack class, which supports Last-Come, First-Serve 'LCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimActors) attempting to enter the queue are 'barred'. At the model level, such entities may be (1) held in place, (2) take an alternate route, or (3) be lost (e.g., dropped call/packet).

The WaitQueue_LCFS class is a wrapper for Scala's Stack class, which supports Last-Come, First-Serve 'LCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimActors) attempting to enter the queue are 'barred'. At the model level, such entities may be (1) held in place, (2) take an alternate route, or (3) be lost (e.g., dropped call/packet).

Value parameters

at

the location of the wait-queue (x, y, w, h)

cap

the capacity of the LCFS queue (defaults to unbounded)

name

the name of the wait-queue

Attributes

Companion
object
Supertypes
trait Component
trait Locatable
trait Identifiable
class Stack[SimActor]
class ArrayDeque[SimActor]
trait DefaultSerializable
trait Serializable
trait ArrayDequeOps[SimActor, Stack, Stack[SimActor]]
trait StrictOptimizedSeqOps[SimActor, Stack, Stack[SimActor]]
trait StrictOptimizedIterableOps[SimActor, Stack, Stack[SimActor]]
trait IndexedBuffer[SimActor]
trait IndexedSeq[SimActor]
trait IndexedSeqOps[SimActor, Stack, Stack[SimActor]]
trait IndexedSeq[SimActor]
trait IndexedSeqOps[SimActor, Stack, Stack[SimActor]]
class AbstractBuffer[SimActor]
trait Buffer[SimActor]
trait Shrinkable[SimActor]
trait Growable[SimActor]
trait Clearable
class AbstractSeq[SimActor]
trait Seq[SimActor]
trait SeqOps[SimActor, Stack, Stack[SimActor]]
trait Cloneable[Stack[SimActor]]
trait Cloneable
trait Iterable[SimActor]
class AbstractSeq[SimActor]
trait Seq[SimActor]
trait Equals
trait SeqOps[SimActor, Stack, Stack[SimActor]]
trait PartialFunction[Int, SimActor]
trait Int => SimActor
class AbstractIterable[SimActor]
trait Iterable[SimActor]
trait IterableFactoryDefaults[SimActor, Stack]
trait IterableOps[SimActor, Stack, Stack[SimActor]]
trait IterableOnceOps[SimActor, Stack, Stack[SimActor]]
trait IterableOnce[SimActor]
class Object
trait Matchable
class Any
Show all

The WaitQueue_LCFS companion object provides a builder method for wait-queues.

The WaitQueue_LCFS companion object provides a builder method for wait-queues.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final class pathTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class routeTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class sourceTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class vSourceTest

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def pathTest(): Unit

The pathTest main function is used to test the Path class, which is a composite class. It simulates a two-lane road in one direction.

The pathTest main function is used to test the Path class, which is a composite class. It simulates a two-lane road in one direction.

runMain scalation.simulation.process.pathTest

Attributes

def routeTest(): Unit

The routeTest main function is used to test the Route class, which is a composite class. It simulates a two-segment, two-lane road in one direction.

The routeTest main function is used to test the Route class, which is a composite class. It simulates a two-segment, two-lane road in one direction.

runMain scalation.simulation.process.routeTest

Attributes

def sourceTest(): Unit

The sourceTest main function tests the Source class by generating several Car objects.

The sourceTest main function tests the Source class by generating several Car objects.

runMain scalation.simulation.process.sourceTest

Attributes

def vSourceTest(): Unit

The vSourceTest main function tests the VSource class by generating several Car objects.

The vSourceTest main function tests the VSource class by generating several Car objects.

runMain scalation.simulation.process.vSourceTest

Attributes