Reporter

scalation.simulation.agent.Model.Reporter
class Reporter(actTime: Double) extends SimAgent

The Reporter inner class observes the statistic at a specific time so schedule this reporter.

Value parameters

actTime

the activation for the reporter.

Attributes

Graph
Supertypes
class SimAgent
trait Topological
trait Spatial
trait PartiallyOrdered[Spatial & Topological]
trait Temporal
trait Ordered[Temporal]
trait Comparable[Temporal]
trait Identifiable
class Coroutine
trait Runnable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type AsPartiallyOrdered = Function1

Attributes

Inherited from:
PartiallyOrdered

Value members

Concrete methods

def act(): Unit

The abstract method, act, is defined in each subclass to provide specific behavior.

The abstract method, act, is defined in each subclass to provide specific behavior.

Attributes

Inherited methods

def <[B >: Spatial & Topological : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <(that: Temporal): Boolean

Attributes

Inherited from:
Ordered
def <=[B >: Spatial & Topological : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <=(that: Temporal): Boolean

Attributes

Inherited from:
Ordered
def >[B >: Spatial & Topological : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >(that: Temporal): Boolean

Attributes

Inherited from:
Ordered
def >=[B >: Spatial & Topological : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >=(that: Temporal): Boolean

Attributes

Inherited from:
Ordered
def compare(other: Temporal): Int

Compare two temporal objects based on their time coordinate.

Compare two temporal objects based on their time coordinate.

Value parameters

other

the other item to compare with this item

Attributes

Inherited from:
Temporal
def compareTo(that: Temporal): Int

Attributes

Inherited from:
Ordered
def counts: (Int, Int, Int)

Return the Coroutine counts.

Return the Coroutine counts.

Attributes

Inherited from:
Coroutine
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
def findFore(d: Double): SimAgent

Find the SimAgent ahead (e.g., to follow). Must be nearest ahead in your element.

Find the SimAgent ahead (e.g., to follow). Must be nearest ahead in your element.

Value parameters

d

the maximum allowed distance to be considered in the neighborhood

Attributes

Inherited from:
SimAgent
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 interrupt(): Unit

Interrupt this waiting coroutine.

Interrupt this waiting coroutine.

Attributes

Inherited from:
Coroutine
def isVirtual: Boolean

Check this thread to see if it is virtual.

Check this thread to see if it is virtual.

Attributes

Inherited from:
Coroutine
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable
def neighbors(d: Double): ArrayBuffer[Topological]

Return the topological objects/tokens in the neighborhood of this token within distance d.

Return the topological objects/tokens in the neighborhood of this token within distance d.

Value parameters

d

the maximum allowed distance to be considered in the neighborhood

Attributes

Inherited from:
Topological
def neighbors: ArrayBuffer[Topological]

Return the topological objects/tokens in the neighborhood of this token.

Return the topological objects/tokens in the neighborhood of this token.

Attributes

Inherited from:
Topological
def r_rescale(factor: Double): Double

Rescale from actual-time (e.g., minutes) to animation-time (milliseconds).

Rescale from actual-time (e.g., minutes) to animation-time (milliseconds).

Value parameters

factor

the time rescaling factor

Attributes

Inherited from:
Temporal
def reorient(): Unit

Reorient the simulation agent behind when making a change (e.g., exit, turn or lane change).

Reorient the simulation agent behind when making a change (e.g., exit, turn or lane change).

Attributes

Inherited from:
SimAgent
def resetStart(): Unit

For multiple sources and more than one replication otherwise, after one replication, all the sources are already started the first source from agenda will be invoked by the yield to null but the second resource from the won't so needs to be reset

For multiple sources and more than one replication otherwise, after one replication, all the sources are already started the first source from agenda will be invoked by the yield to null but the second resource from the won't so needs to be reset

Attributes

Inherited from:
Coroutine
def run(): Unit

Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.

Thread's 'run' method delegates to the 'act' method. Upon interruption the 'act' method is run again from the beginning.

Attributes

Inherited from:
Coroutine
def s_rescale(factor: Double): VectorD

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Value parameters

factor

the space rescaling factor

Attributes

Inherited from:
Spatial
def setPos(x: Double, y: Double): Unit

Set the initial position of this agent using the given x and y coordinates. Add half width and height to position center rather than top-left.

Set the initial position of this agent using the given x and y coordinates. Add half width and height to position center rather than top-left.

Value parameters

x

the x-coordinate

y

the y-coordinate

Attributes

Inherited from:
SimAgent
def start(): Unit

Start this coroutine, i.e., invoke its 'run' -> 'act' method.

Start this coroutine, i.e., invoke its 'run' -> 'act' method.

Attributes

Inherited from:
Coroutine
override def toString: String

Convert the simulation agent to a string.

Convert the simulation agent to a string.

Attributes

Definition Classes
Inherited from:
SimAgent
override def tryCompareTo[B >: SimAgent : AsPartiallyOrdered](other: B): Option[Int]

Compare two spatial objects based on their space coordinates.

Compare two spatial objects based on their space coordinates.

Value parameters

other

the other item to compare with this item

Attributes

Definition Classes
SimAgent -> Topological -> Spatial -> PartiallyOrdered
Inherited from:
SimAgent
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable
def updateLoc(distance: Double, edge: Edge): Unit

Update the location of this agent by moving distance units along the given edge.

Update the location of this agent by moving distance units along the given edge.

Value parameters

distance

the incremental distance to move along the edge

edge

the current edge (typically the same one it was on)

Attributes

Inherited from:
SimAgent
def updatePos(distance: Double, angle: Double): Unit

Update the position of this agent by moving distance units in the direction determined by the angle.

Update the position of this agent by moving distance units in the direction determined by the angle.

Value parameters

angle

the angle/direction to move in (0 radians => move right)

distance

the incremental distance to move

Attributes

Inherited from:
SimAgent
def yieldToDirector(quit: Boolean): Unit

Yield control TO the director so the director can take the next action. For efficiency, can yield THROUGH the director to the next agent, rather than TO the director itself. CURRENTLY ONLY THROUGH WORKS.

Yield control TO the director so the director can take the next action. For efficiency, can yield THROUGH the director to the next agent, rather than TO the director itself. CURRENTLY ONLY THROUGH WORKS.

Value parameters

quit

the flag indicating whether this agent is done

Attributes

Inherited from:
SimAgent
def yyield(that: Coroutine, quit: Boolean): Unit

Yield control from 'this' to 'that' coroutine.

Yield control from 'this' to 'that' coroutine.

Value parameters

quit

whether 'this' coroutine is to terminate (true) or wait to be resumed (false)

that

the other coroutine to yield control to

Attributes

Inherited from:
Coroutine

Inherited fields

var dist: Double

Attributes

Inherited from:
Topological
var elem: Element

Attributes

Inherited from:
Topological
val id: Int

Attributes

Inherited from:
Identifiable
var loc: (Element, Double)

Attributes

Inherited from:
SimAgent
val name: String

Attributes

Inherited from:
Identifiable
val pos: VectorD

Attributes

Inherited from:
Spatial
val prop: Map[String, ValueType]

Attributes

Inherited from:
SimAgent
var subtype: Int

Attributes

Inherited from:
SimAgent
var time: Double

Attributes

Inherited from:
Temporal