E
- EntityAnimations or SimProcessAnimationpublic class TransportRouteAnimation<E extends EntityBasicAnimation> extends ModelComponent
Constructor and Description |
---|
TransportRouteAnimation(ModelAnimation owner,
java.lang.String name,
double length,
TransportStationAnimation sourceStation,
TransportStationAnimation sinkStation,
Position[] pos,
boolean showInAnimation)
creates a route from sourceStation tp sinkStation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
clear()
remove all entities from route
|
boolean |
insert(E entity)
Insert an entity at begin of route.
|
boolean |
insert(E entity,
double velocity)
Insert an entity at begin of route.
|
boolean |
insert(E entity,
TimeSpan routeTime)
Insert an entity at begin of route.
|
boolean |
remove(E entity)
remove entity from route
|
boolean |
setAttributes(int show,
int lineSize,
java.awt.Color color)
change attribute values
|
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public TransportRouteAnimation(ModelAnimation owner, java.lang.String name, double length, TransportStationAnimation sourceStation, TransportStationAnimation sinkStation, Position[] pos, boolean showInAnimation)
owner
- name
- Name of routelength
- Length of routesourceStation
- sinkStation
- pos
- Intermediate positionsshowInAnimation
- public boolean setAttributes(int show, int lineSize, java.awt.Color color)
show
- combination of Route.SHOW_ flagslineSize
- look at Route.LINE_Size_color
- color of route animationpublic boolean clear()
public boolean remove(E entity)
entity
- entity to removepublic boolean insert(E entity)
entity
- public boolean insert(E entity, double velocity)
entity
- velocity
- public boolean insert(E entity, TimeSpan routeTime)
entity
- routeTime
- SimulationException
- when routeTime <= 0