edu.cmu.emulator.creator.config
Class Waypoint
java.lang.Object
edu.cmu.emulator.creator.config.ConfigNode
edu.cmu.emulator.creator.config.Waypoint
public class Waypoint
- extends ConfigNode
name
private String name
pos
private Coord pos
speedOrTime
private Waypoint.ParamType speedOrTime
speed
private double speed
arrivalTime
private long arrivalTime
Waypoint
public Waypoint(String name,
Coord pos,
double speed)
Waypoint
public Waypoint(String name,
Coord pos,
long arrivalTime)
getName
public String getName()
getPos
public Coord getPos()
getSpeed
public double getSpeed()
getArrivalTime
public long getArrivalTime()
hasSpeed
public boolean hasSpeed()
hasTime
public boolean hasTime()
toString
public String toString()
- Overrides:
toString
in class Object
fromXML
public static Waypoint fromXML(Element el)
throws ConfigException
- Throws:
ConfigException
toXML
protected Element toXML(Document doc)
Copyright © 2013. All Rights Reserved.