|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.SimulationBuilder
public class SimulationBuilder
This class has a static method to create a simulation from a give input file. Expects a file in the format: Line 1: routing_algorithm number_of_nodes transmission_range idle_power transmit_power transfer_rate noise_rate duration seed node_area location_is_random_else_uniform Line 2: movement_is_random_else_specify Line 3: communication_is_random_else_specify
Constructor Summary | |
---|---|
SimulationBuilder()
|
Method Summary | |
---|---|
static SimulationRunner |
buildSimulation(java.io.File input,
java.io.File outputDir)
Static method which sets up the entire simulation, returns a simulation runner object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationBuilder()
Method Detail |
---|
public static SimulationRunner buildSimulation(java.io.File input, java.io.File outputDir) throws java.io.IOException, SimulationException
input
- single file to exeoutputDir
-
java.io.IOException
SimulationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |