edu.bonn.cs.iv.bonnmotion.models
Class GaussMarkov

java.lang.Object
  extended by edu.bonn.cs.iv.bonnmotion.App
      extended by edu.bonn.cs.iv.bonnmotion.Scenario
          extended by edu.bonn.cs.iv.bonnmotion.models.GaussMarkov
All Implemented Interfaces:
Model, ScenarioLink

public class GaussMarkov
extends Scenario

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

updateFrequency

protected double updateFrequency
Update frequency [s].


maxspeed

protected double maxspeed
Maximum speed [m/s].


angleStdDev

protected double angleStdDev
Border width [m].


speedStdDev

protected double speedStdDev
Speed standard deviation [m/s].


checkBounds

protected boolean checkBounds
prevent nodes from running out of the simulation are?


gaussSpeed

protected boolean gaussSpeed
Initialize speed with gaussian distribution


uniformSpeed

protected boolean uniformSpeed
Force uniform speed distribution


minspeed

protected double minspeed

inputX

protected double inputX

inputY

protected double inputY
Constructor Detail

GaussMarkov

public GaussMarkov(java.lang.String[] args)

GaussMarkov

public GaussMarkov(int nodes,
                   double x,
                   double y,
                   double duration,
                   double ignore,
                   long randomSeed,
                   double updateFrequency,
                   double maxspeed,
                   double angleStdDev,
                   double speedStdDev)

GaussMarkov

public GaussMarkov(java.lang.String[] args,
                   Scenario _pre,
                   java.lang.Integer _transitionMode)
Method Detail

parseArg

protected boolean parseArg(java.lang.String key,
                           java.lang.String value)
Overrides:
parseArg in class Scenario

parseArg

protected boolean parseArg(char key,
                           java.lang.String val)
Overrides:
parseArg in class Scenario

go

public void go(java.lang.String[] args)
Description copied from class: App
Main method from where all the magic starts ...

Overrides:
go in class Scenario
See Also:
App.go(String[])

generate

public void generate()

getNewDir

public double getNewDir(double oldDir,
                        Position pos)

getNewSpeed

public double getNewSpeed(double oldSpeed)

write

public void write(java.lang.String _name)
           throws java.io.FileNotFoundException,
                  java.io.IOException
Specified by:
write in interface Model
Overrides:
write in class Scenario
Throws:
java.io.FileNotFoundException
java.io.IOException

printHelp

public static void printHelp()