SimActor

scalation.simulation.process.SimActor
See theSimActor companion class
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.

Attributes

See also

myNode in SimActor class.

routeTest main function for example of use of alist.

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
SimActor.type

Members list

Value members

Concrete methods

def addToAlist(actor: SimActor, other: SimActor): Unit

Add the given actor AFTER the other actor in the alist, e.g., when beginning a Route/VTransport.

Add the given actor AFTER the other actor in the alist, e.g., when beginning a Route/VTransport.

Value parameters

actor

the given actor/vehicle to add

other

the other actor/vehicle (the one ahead, null if none)

Attributes

def removeFromAlist(actor: SimActor): Unit

Remove the given actor from the alist, e.g., because of termination, lane change, or turn.

Remove the given actor from the alist, e.g., because of termination, lane change, or turn.

Value parameters

actor

the given actor/vehicle to add

Attributes

Concrete fields