|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.cmu.emulator.creator.config.ConfigNode
edu.cmu.emulator.creator.config.Waypoint
public class Waypoint
| Nested Class Summary | |
|---|---|
static class |
Waypoint.ParamType
|
| Field Summary | |
|---|---|
private long |
arrivalTime
|
private String |
name
|
private Coord |
pos
|
private double |
speed
|
private Waypoint.ParamType |
speedOrTime
|
| Constructor Summary | |
|---|---|
Waypoint(String name,
Coord pos,
double speed)
|
|
Waypoint(String name,
Coord pos,
long arrivalTime)
|
|
| Method Summary | |
|---|---|
static Waypoint |
fromXML(Element el)
|
long |
getArrivalTime()
|
String |
getName()
|
Coord |
getPos()
|
double |
getSpeed()
|
boolean |
hasSpeed()
|
boolean |
hasTime()
|
String |
toString()
|
protected Element |
toXML(Document doc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String name
private Coord pos
private Waypoint.ParamType speedOrTime
private double speed
private long arrivalTime
| Constructor Detail |
|---|
public Waypoint(String name,
Coord pos,
double speed)
public Waypoint(String name,
Coord pos,
long arrivalTime)
| Method Detail |
|---|
public String getName()
public Coord getPos()
public double getSpeed()
public long getArrivalTime()
public boolean hasSpeed()
public boolean hasTime()
public String toString()
toString in class Object
public static Waypoint fromXML(Element el)
throws ConfigException
ConfigExceptionprotected Element toXML(Document doc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||