scalation.simulation

Members list

Type members

Classlikes

trait Completion

The Completion trait is used for signalling between threads that the simulation has finished. A Semaphore from the Java library is used to cause a thread/coroutine to wait when calling 'acquire' until another thread/coroutine calls 'release'.

The Completion trait is used for signalling between threads that the simulation has finished. A Semaphore from the Java library is used to cause a thread/coroutine to wait when calling 'acquire' until another thread/coroutine calls 'release'.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class Coroutine(label: String) extends Runnable

The Coroutine class supports (one-at-a-time) quasi-concurrent programming. A coroutine runs/acts until it yields control from 'this' to 'that' coroutine. When resumed, a coroutines continues its execution where it left off.

The Coroutine class supports (one-at-a-time) quasi-concurrent programming. A coroutine runs/acts until it yields control from 'this' to 'that' coroutine. When resumed, a coroutines continues its execution where it left off.

Value parameters

label

the label for the class of coroutines to be created.

Attributes

Companion
object
Supertypes
trait Runnable
class Object
trait Matchable
class Any
Known subtypes
class SimAgent
class Customer
class Reporter
class Call
class Car
class Car
class Bus
class Gate
class Source
class Model
class BankModel
class LoopModel
class MachineModel
class RoadModel
class TrafficModel
class UGA_BusModel
class BankModel
class Model_MBM
class BankModel
class SimActor
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
class Cor1
class Cor2
Show all
object Coroutine

The Coroutine companion object provides functions to start-up and shutdown the coroutine system as well as counters for the Coroutine class.

The Coroutine companion object provides functions to start-up and shutdown the coroutine system as well as counters for the Coroutine class.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Coroutine.type
object CoroutineTest

The CoroutineTest object is used to test the Coroutine class. Should print: start coroutines Cor1: phase 1 inside Cor1 the id is 22 isVirtual true VirtualThread[#22]/runnable@ForkJoinPool-1-worker-1 Cor2: phase 1 inside Cor2 the id is 26 isVirtual true VirtualThread[#26]/runnable@ForkJoinPool-1-worker-3 Cor1: phase 2 Cor2: phase 2

The CoroutineTest object is used to test the Coroutine class. Should print: start coroutines Cor1: phase 1 inside Cor1 the id is 22 isVirtual true VirtualThread[#22]/runnable@ForkJoinPool-1-worker-1 Cor2: phase 1 inside Cor2 the id is 26 isVirtual true VirtualThread[#26]/runnable@ForkJoinPool-1-worker-3 Cor1: phase 2 Cor2: phase 2

runMain scalation.simulation.runCoroutineTest

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Identifiable

The Identifiable trait provides unique identification for simulation components, entities and events. Includes a mandatory id and an optional name.

The Identifiable trait provides unique identification for simulation components, entities and events. Includes a mandatory id and an optional name.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ArcD
class ArcI
class PlaceD
class PlaceI
class Transition
class Route
class CausalLink
class Entity
class Event
class Arrival
class Departure
class Arrival
class Departure
class Arrival
class Departure
class Arrival
class Departure
class Arrival
class Departure
class Arrival
class Departure
class Arrival
class Arrival
class Arrival
class EventNode
class Arrival
class Model
class BankModel
class BankModel2
class BankModel3
class MachineModel
class PoissonModel
class SOMEModel
trait Component
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
trait Temporal
class SimActor
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 Vehicle
class Car
Show all
object Identifiable

The Identifiable object is used to generate unique identifiers.

The Identifiable object is used to generate unique identifiers.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait Locatable

The Locatable trait provides location information/coordinates for objects in simulation models (e.g., Components).

The Locatable trait provides location information/coordinates for objects in simulation models (e.g., Components).

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Component
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
class SimActor
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 Vehicle
class Car
Show all
trait Locatable2

The Locatable trait provides location information/coordinates for objects in simulation models (e.g., SimActors).

The Locatable trait provides location information/coordinates for objects in simulation models (e.g., SimActors).

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Modelable

The Modelable trait defines what is common to simulation models supported in ScalaTion.

The Modelable trait defines what is common to simulation models supported in ScalaTion.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Monitor(project: String)

The Monitor class is used to trace the actions/events in the models.

The Monitor class is used to trace the actions/events in the models.

Value parameters

project

the project to be monitored

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class NH_PoissonProcess(t: Double, lambdaf: FunctionS2S, stream: Int) extends PoissonProcess

The NH_PoissonProcess class generates data following a Non-Homogeneous Poisson Process.

The NH_PoissonProcess class generates data following a Non-Homogeneous Poisson Process.

Value parameters

lambdaf

the arrival rate function, lambda(t)

stream

the random number stream to use

t

the terminal time

Attributes

Supertypes
class VariateVec
class Object
trait Matchable
class Any
class PoissonProcess(t: Double, lambda: Double, stream: Int) extends VariateVec

The PoissonProcess class generates data following a Poisson Process.

The PoissonProcess class generates data following a Poisson Process.

Value parameters

lambda

the arrival rate

stream

the random number stream to use

t

the terminal time

Attributes

Supertypes
class VariateVec
class Object
trait Matchable
class Any
Known subtypes
trait Temporal extends Identifiable

The Temporal trait adds time (actTime) and temporal ordering to Identifiable.

The Temporal trait adds time (actTime) and temporal ordering to Identifiable.

Attributes

Supertypes
trait Identifiable
class Object
trait Matchable
class Any
Known subtypes
class Transition
class SimActor
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
final class monitorTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class nH_PoissonProcessTest

Attributes

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
final class poissonProcessTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class runCoroutineTest

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def monitorTest(): Unit

The monitorTest main function is used to test the Monitor class.

The monitorTest main function is used to test the Monitor class.

runMain scalation.simulation.monitorTest

Attributes

def nH_PoissonProcessTest(): Unit

The nH_PoissonProcessTest main function is used to test the NH_PoissonProcess class. Example of car arrivals and determination of traffic flow (car per 5-minutes passing by a sensor).

The nH_PoissonProcessTest main function is used to test the NH_PoissonProcess class. Example of car arrivals and determination of traffic flow (car per 5-minutes passing by a sensor).

runMain scalation.simulation.nH_PoissonProcessTest

Attributes

The nH_PoissonProcessTest2 main function is used to test the NH_PoissonProcess class. Example showing how to use the PolyRegression class to create a lambda function based on traffic data.

The nH_PoissonProcessTest2 main function is used to test the NH_PoissonProcess class. Example showing how to use the PolyRegression class to create a lambda function based on traffic data.

runMain scalation.simulation.nH_PoissonProcessTest2

Attributes

def poissonProcessTest(): Unit

The poissonProcessTest main function is used to test the PoissonProcess class. Example of car arrivals and determination of traffic flow (car per 5-minutes passing by a sensor).

The poissonProcessTest main function is used to test the PoissonProcess class. Example of car arrivals and determination of traffic flow (car per 5-minutes passing by a sensor).

runMain scalation.simulation.poissonProcessTest

Attributes