|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.cs.iv.bonnmotion.App
edu.bonn.cs.iv.bonnmotion.Scenario
edu.bonn.cs.iv.bonnmotion.RandomSpeedBase
edu.bonn.cs.iv.bonnmotion.models.RPGM
public class RPGM
Application to create movement scenarios according to the Reference Point Group Mobility model.
Field Summary | |
---|---|
protected double |
avgMobileNodesPerGroup
Average nodes per group. |
protected int |
groups
Number of groups (not an input parameter!). |
protected double |
groupSizeDeviation
Standard deviation of nodes per group. |
protected double |
maxdist
Maximum deviation from group center [m]. |
protected int |
maxGroupSize
Size of largest group (not an input parameter!). |
protected double |
pGroupChange
The probability for a node to change to a new group when moving into it's range. |
Fields inherited from class edu.bonn.cs.iv.bonnmotion.RandomSpeedBase |
---|
maxpause, maxspeed, minspeed |
Fields inherited from class edu.bonn.cs.iv.bonnmotion.Scenario |
---|
aField, aFieldParams, buildings, circular, duration, ignore, isTransition, modelName, node, predecessorScenario, rand, randomSeed, transitionMode, x, y |
Fields inherited from interface edu.bonn.cs.iv.bonnmotion.ScenarioLink |
---|
LINKMODE_FAST, LINKMODE_MOVE |
Constructor Summary | |
---|---|
RPGM(int nodes,
double x,
double y,
double duration,
double ignore,
long randomSeed,
double minspeed,
double maxspeed,
double maxpause,
double maxdist,
double avgMobileNodesPerGroup,
double groupSizeDeviation,
double pGroupChange)
|
|
RPGM(java.lang.String[] args)
|
Method Summary | |
---|---|
void |
generate()
|
void |
go(java.lang.String[] args)
Main method from where all the magic starts ... |
protected boolean |
parseArg(char key,
java.lang.String val)
|
protected boolean |
parseArg(java.lang.String key,
java.lang.String value)
|
static void |
printHelp()
|
void |
write(java.lang.String _name)
|
Methods inherited from class edu.bonn.cs.iv.bonnmotion.RandomSpeedBase |
---|
write |
Methods inherited from class edu.bonn.cs.iv.bonnmotion.Scenario |
---|
cut, getBuilding, getDuration, getIgnore, getModelName, getNode, getNode, getRandomSeed, getX, getY, nodeCount, paramFromFile, paramFromFile, postGeneration, preGeneration, randomNextDouble, randomNextGaussian, randomNextPosition, randomNextPosition, read, setDuration, setModelName, setNode, transition, transitionWaypointFast, transitionWaypointMove |
Methods inherited from class edu.bonn.cs.iv.bonnmotion.App |
---|
exceptionHandler, openPrintWriter, parse, parseArg, parseDoubleArray, parseIntArray, parseStringArray, stringArrayConcat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double maxdist
protected double avgMobileNodesPerGroup
protected double groupSizeDeviation
protected double pGroupChange
protected int groups
protected int maxGroupSize
Constructor Detail |
---|
public RPGM(int nodes, double x, double y, double duration, double ignore, long randomSeed, double minspeed, double maxspeed, double maxpause, double maxdist, double avgMobileNodesPerGroup, double groupSizeDeviation, double pGroupChange)
public RPGM(java.lang.String[] args)
Method Detail |
---|
public void go(java.lang.String[] args)
App
go
in class Scenario
App.go(String[])
public void generate()
protected boolean parseArg(java.lang.String key, java.lang.String value)
parseArg
in class RandomSpeedBase
public void write(java.lang.String _name) throws java.io.FileNotFoundException, java.io.IOException
write
in interface Model
write
in class Scenario
java.io.FileNotFoundException
java.io.IOException
protected boolean parseArg(char key, java.lang.String val)
parseArg
in class RandomSpeedBase
public static void printHelp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |