edu.bonn.cs.iv.bonnmotion.models
Class Static
java.lang.Object
edu.bonn.cs.iv.bonnmotion.App
edu.bonn.cs.iv.bonnmotion.Scenario
edu.bonn.cs.iv.bonnmotion.models.Static
- All Implemented Interfaces:
- Model, ScenarioLink
public class Static
- extends Scenario
Application to construct static scenarios.
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 |
Constructor Summary |
Static(int nodes,
double x,
double y,
double duration,
double ignore,
long randomSeed,
int densityLevels,
double[] aFieldParams)
|
Static(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 val)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
densityLevels
protected int densityLevels
Static
public Static(int nodes,
double x,
double y,
double duration,
double ignore,
long randomSeed,
int densityLevels,
double[] aFieldParams)
Static
public Static(java.lang.String[] args)
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()
parseArg
protected boolean parseArg(java.lang.String key,
java.lang.String val)
- Overrides:
parseArg
in class Scenario
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
parseArg
protected boolean parseArg(char key,
java.lang.String val)
- Overrides:
parseArg
in class Scenario
printHelp
public static void printHelp()