|
||||||||||
| 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.models.GaussMarkov
public class GaussMarkov
Application to construct Gauss-Markov mobility scenarios.
| Field Summary | |
|---|---|
protected double |
angleStdDev
Border width [m]. |
protected boolean |
checkBounds
prevent nodes from running out of the simulation are? |
protected boolean |
gaussSpeed
Initialize speed with gaussian distribution |
protected double |
inputX
|
protected double |
inputY
|
protected double |
maxspeed
Maximum speed [m/s]. |
protected double |
minspeed
|
protected double |
speedStdDev
Speed standard deviation [m/s]. |
protected boolean |
uniformSpeed
Force uniform speed distribution |
protected double |
updateFrequency
Update frequency [s]. |
| 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 | |
|---|---|
GaussMarkov(int nodes,
double x,
double y,
double duration,
double ignore,
long randomSeed,
double updateFrequency,
double maxspeed,
double angleStdDev,
double speedStdDev)
|
|
GaussMarkov(java.lang.String[] args)
|
|
GaussMarkov(java.lang.String[] args,
Scenario _pre,
java.lang.Integer _transitionMode)
|
|
| Method Summary | |
|---|---|
void |
generate()
|
double |
getNewDir(double oldDir,
Position pos)
|
double |
getNewSpeed(double oldSpeed)
|
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.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, write |
| 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 updateFrequency
protected double maxspeed
protected double angleStdDev
protected double speedStdDev
protected boolean checkBounds
protected boolean gaussSpeed
protected boolean uniformSpeed
protected double minspeed
protected double inputX
protected double inputY
| Constructor Detail |
|---|
public GaussMarkov(java.lang.String[] args)
public GaussMarkov(int nodes,
double x,
double y,
double duration,
double ignore,
long randomSeed,
double updateFrequency,
double maxspeed,
double angleStdDev,
double speedStdDev)
public GaussMarkov(java.lang.String[] args,
Scenario _pre,
java.lang.Integer _transitionMode)
| Method Detail |
|---|
protected boolean parseArg(java.lang.String key,
java.lang.String value)
parseArg in class Scenario
protected boolean parseArg(char key,
java.lang.String val)
parseArg in class Scenariopublic void go(java.lang.String[] args)
App
go in class ScenarioApp.go(String[])public void generate()
public double getNewDir(double oldDir,
Position pos)
public double getNewSpeed(double oldSpeed)
public void write(java.lang.String _name)
throws java.io.FileNotFoundException,
java.io.IOException
write in interface Modelwrite in class Scenariojava.io.FileNotFoundException
java.io.IOExceptionpublic static void printHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||