edu.cmu.emulator.creator.config
Class Waypoint

java.lang.Object
  extended by edu.cmu.emulator.creator.config.ConfigNode
      extended by edu.cmu.emulator.creator.config.Waypoint

public class Waypoint
extends ConfigNode


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

name

private String name

pos

private Coord pos

speedOrTime

private Waypoint.ParamType speedOrTime

speed

private double speed

arrivalTime

private long arrivalTime
Constructor Detail

Waypoint

public Waypoint(String name,
                Coord pos,
                double speed)

Waypoint

public Waypoint(String name,
                Coord pos,
                long arrivalTime)
Method Detail

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.