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

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.Sleep

public class Sleep
extends Event


Field Summary
private  long duration
           
 
Constructor Summary
Sleep(long duration)
           
 
Method Summary
 Event clone()
           
static Sleep fromXML(Element el)
           
 long getDuration()
           
 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

duration

private long duration
Constructor Detail

Sleep

public Sleep(long duration)
Method Detail

getType

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

getDuration

public long getDuration()

clone

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

fromXML

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

toXML

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


Copyright © 2013. All Rights Reserved.