edu.cmu.emulator.creator.config.event
Class SetDestAndDuration

java.lang.Object
  extended by edu.cmu.emulator.creator.config.ConfigNode
      extended by edu.cmu.emulator.creator.config.Event
          extended by edu.cmu.emulator.creator.config.event.SetDestAndDuration

public class SetDestAndDuration
extends Event


Field Summary
private  long duration
           
private  String node
           
private  Coord pos
           
 
Constructor Summary
SetDestAndDuration(String node, Coord pos, long duration)
           
 
Method Summary
 Event clone()
           
static SetDestAndDuration fromXML(Element el)
           
 long getDuration()
           
 String getNode()
           
 Coord getPos()
           
 String getType()
           
protected  void toXML(Document doc, Element el)
           
 
Methods inherited from class edu.cmu.emulator.creator.config.Event
toString, toXML
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

private String node

pos

private Coord pos

duration

private long duration
Constructor Detail

SetDestAndDuration

public SetDestAndDuration(String node,
                          Coord pos,
                          long duration)
Method Detail

getType

public String getType()
Specified by:
getType in class Event

getNode

public String getNode()

getPos

public Coord getPos()

getDuration

public long getDuration()

fromXML

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

clone

public Event clone()
Specified by:
clone in class Event

toXML

protected void toXML(Document doc,
                     Element el)
Specified by:
toXML in class Event


Copyright © 2013. All Rights Reserved.