The Transport
class provides a pathway between two vertices (motion on an edge).
Value parameters
- director
-
the
Model
directing the simulation - from
-
the first/starting vertex
- moveRV
-
the movement random variate
- name
-
the name of this transport
- prop
-
the properties (Map) of this transport
- shift
-
the orthogonal shift of the edge - FIX - make shifting more uniform
- 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 second/ending vertex
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Statisticaltrait EdgeAgentsclass Edgetrait Serializabletrait Spatialtrait PartiallyOrdered[Spatial]trait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- PartiallyOrdered
Value members
Concrete methods
Move the entity SimAgent
smoothly down this transport. Repeatedly move it along the transport taking small steps each time.
Move the entity SimAgent
smoothly down this transport. Repeatedly move it along the transport taking small steps each time.
Value parameters
- agent
-
the agent who is moving along this transport
- duration
-
the total time it will take agent to move over the transport
- fraction
-
the fraction of the remaining transform to move along
Attributes
Inherited methods
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Add the given agent to the end of list (e.g., start of a transport).
Add the given agent to the end of list (e.g., start of a transport).
Value parameters
- agent
-
the agent being added to the end
Attributes
- Inherited from:
- EdgeAgents
Return sample statistics for durations for this component (e.g., Time in queue).
Return sample statistics for durations for this component (e.g., Time in queue).
Attributes
- Inherited from:
- Statistical
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
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Find the agent whose distance down the edge is at least loc.
Find the agent whose distance down the edge is at least loc.
Value parameters
- loc
-
the location at which the agent is sought (closest larger)
Attributes
- Inherited from:
- EdgeAgents
Find the given agent in the list and return its index position.
Find the given agent in the list and return its index position.
Value parameters
- agent
-
the agent whose index is sought (< 0 => not found)
Attributes
- Inherited from:
- EdgeAgents
Find the first agent in the list that satifies the given predicate and return its index position (< 0 => not found).
Find the first agent in the list that satifies the given predicate and return its index position (< 0 => not found).
Value parameters
- p
-
the predicate to be satified
Attributes
- Inherited from:
- EdgeAgents
Insert the given agent at the specified index position.
Insert the given agent at the specified index position.
Value parameters
- agent
-
the agent being added at the given position
Attributes
- Inherited from:
- EdgeAgents
Insert the given agent after agent2 in the list.
Insert the given agent after agent2 in the list.
Value parameters
- agent
-
the new agent being added after agent2
- agent2
-
the existing agent to insert it after
Attributes
- Inherited from:
- EdgeAgents
Return the full identity.
Return time persistent statistics for value for this component (e.g. Number in queue).
Return time persistent statistics for value for this component (e.g. Number in queue).
Attributes
- Inherited from:
- Statistical
Remove the given agent from the list.
Remove the given agent from the list.
Value parameters
- agent
-
the agent being removed from the list
Attributes
- Inherited from:
- EdgeAgents
Remove the first agent from the list.
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
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
- Inherited from:
- Spatial
Get the type of the object.