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

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

public class RandomWalk
extends Event


Field Summary
private  long duration
           
private  long maxSpeed
           
private  long maxWait
           
private  String node
           
private  long seed
           
 
Constructor Summary
RandomWalk(String node, long seed, long maxWait, long maxSpeed, long duration)
           
 
Method Summary
 Event clone()
           
static RandomWalk fromXML(Element el)
           
 long getDuration()
           
 long getMaxSpeed()
           
 long getMaxWait()
           
 String getNode()
           
 long getSeed()
           
 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

seed

private long seed

maxWait

private long maxWait

maxSpeed

private long maxSpeed

duration

private long duration
Constructor Detail

RandomWalk

public RandomWalk(String node,
                  long seed,
                  long maxWait,
                  long maxSpeed,
                  long duration)
Method Detail

getType

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

getNode

public String getNode()

getSeed

public long getSeed()

getMaxWait

public long getMaxWait()

getMaxSpeed

public long getMaxSpeed()

getDuration

public long getDuration()

fromXML

public static RandomWalk 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.