public class DefaultAnimationFactory extends Object implements EventListenerInterface
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAnimationFactory(OTSNetwork network,
OTSSimulatorInterface simulator,
GTUColorer gtuColorer,
boolean animateNetwork)
Creates animations for nodes, links and lanes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
animateGTU(LaneBasedGTU gtu)
Draw the GTU (scheduled method).
|
protected void |
animateGTUGenerator(GtuGenerator gtuGenerator)
Draw the GTUGenerator.
|
static void |
animateNetwork(OTSNetwork network,
OTSSimulatorInterface simulator,
GTUColorer gtuColorer)
Creates animations for nodes, links, lanes and GTUs.
|
protected void |
animateStaticObject(ObjectInterface object)
Draw the static object.
|
static void |
animateXmlNetwork(OTSNetwork network,
OTSSimulatorInterface simulator,
GTUColorer gtuColorer)
Creates animations for nodes, links, lanes and GTUs.
|
void |
notify(EventInterface event) |
protected DefaultAnimationFactory(OTSNetwork network, OTSSimulatorInterface simulator, GTUColorer gtuColorer, boolean animateNetwork) throws OTSDrawingException
network - OTSNetwork; the networksimulator - OTSSimulatorInterface; the simulatorgtuColorer - GTUColorer; GTU coloreranimateNetwork - boolean; whether to animate the current network objectsOTSDrawingException - on drawing errorpublic static void animateNetwork(OTSNetwork network, OTSSimulatorInterface simulator, GTUColorer gtuColorer) throws OTSDrawingException
network - OTSNetwork; the networksimulator - OTSSimulatorInterface; the simulatorgtuColorer - GTUColorer; GTU colorerOTSDrawingException - on drawing errorpublic static void animateXmlNetwork(OTSNetwork network, OTSSimulatorInterface simulator, GTUColorer gtuColorer) throws OTSDrawingException
network - OTSNetwork; the networksimulator - OTSSimulatorInterface; the simulatorgtuColorer - GTUColorer; GTU colorerOTSDrawingException - on drawing errorpublic void notify(EventInterface event) throws RemoteException
notify in interface EventListenerInterfaceRemoteExceptionprotected void animateGTU(LaneBasedGTU gtu)
gtu - LaneBasedGTU; the GTU to drawprotected void animateStaticObject(ObjectInterface object)
object - ObjectInterface; the object to drawprotected void animateGTUGenerator(GtuGenerator gtuGenerator)
gtuGenerator - GtuGenerator; the GTUGenerator to drawCopyright © 2014–2019 Delft University of Technology. All rights reserved.