edu.cmu.emulator.creator.config
Class Route

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

public class Route
extends ConfigNode


Field Summary
private  boolean loop
           
private  String name
           
private  List<Waypoint> waypoints
           
 
Constructor Summary
Route(Route other)
           
Route(String name, boolean loop, List<Waypoint> waypoints)
           
 
Method Summary
static Route fromXML(Element el)
           
 boolean getLoop()
           
 String getName()
           
 List<Waypoint> getWaypoints()
           
 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

loop

private boolean loop

waypoints

private List<Waypoint> waypoints
Constructor Detail

Route

public Route(String name,
             boolean loop,
             List<Waypoint> waypoints)

Route

public Route(Route other)
Method Detail

getName

public String getName()

getLoop

public boolean getLoop()

getWaypoints

public List<Waypoint> getWaypoints()

toString

public String toString()
Overrides:
toString in class Object

fromXML

public static Route fromXML(Element el)
                     throws ConfigException
Throws:
ConfigException

toXML

protected Element toXML(Document doc)


Copyright © 2013. All Rights Reserved.