|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lucci.madhoc.simulation.DgsDriver
public class DgsDriver
This class implements the SimulationListener
interface and allow the creation of a DSG file. This file
represents a dynamic graph that is resultant from the activity of the Madhoc simulator.
The class generates a gziped file
The DGS (Dynamic Graph Stream) file format stores information about dynamic graphs. This information is divided into canonical events that are edge/node modification insertion or deletion. Each event represents a line in the file. A set of modifications in the graph genereate such lines.
The time at witch the events occure can be controled with the notion of step. A step is another event in the file format. The time elapsed between 2 steps can be controled by the application.
Constructor Summary | |
---|---|
DgsDriver()
|
Method Summary | |
---|---|
void |
afterDataTransfer(MadhocSimulation arg0)
|
void |
afterSensing(MadhocSimulation arg0)
|
void |
afterStationsDo(MadhocSimulation arg0)
|
void |
afterTheStationsMove(MadhocSimulation arg0)
|
void |
beforeDataTransfer(MadhocSimulation arg0)
|
void |
beforeSensing(MadhocSimulation arg0)
|
void |
beforeStationsDo(MadhocSimulation arg0)
|
void |
beforeTheStationsMove(MadhocSimulation arg0)
|
void |
connectionsHaveAppeared(MadhocSimulation arg0,
java.util.Collection<Connection> arg1)
|
void |
connectionsHaveVanished(MadhocSimulation arg0,
java.util.Collection<Connection> arg1)
|
void |
iterationHasCompleted(Simulation arg0)
|
void |
iterationStarting(Simulation arg0)
|
void |
terminate()
Close the fil before terminatng. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DgsDriver()
Method Detail |
---|
public void afterDataTransfer(MadhocSimulation arg0)
afterDataTransfer
in interface SimulationListener
public void afterSensing(MadhocSimulation arg0)
afterSensing
in interface SimulationListener
public void afterStationsDo(MadhocSimulation arg0)
afterStationsDo
in interface SimulationListener
public void afterTheStationsMove(MadhocSimulation arg0)
afterTheStationsMove
in interface SimulationListener
public void beforeDataTransfer(MadhocSimulation arg0)
beforeDataTransfer
in interface SimulationListener
public void beforeSensing(MadhocSimulation arg0)
beforeSensing
in interface SimulationListener
public void beforeStationsDo(MadhocSimulation arg0)
beforeStationsDo
in interface SimulationListener
public void beforeTheStationsMove(MadhocSimulation arg0)
beforeTheStationsMove
in interface SimulationListener
public void connectionsHaveAppeared(MadhocSimulation arg0, java.util.Collection<Connection> arg1)
connectionsHaveAppeared
in interface SimulationListener
public void connectionsHaveVanished(MadhocSimulation arg0, java.util.Collection<Connection> arg1)
connectionsHaveVanished
in interface SimulationListener
public void iterationHasCompleted(Simulation arg0)
iterationHasCompleted
in interface SimulationListener
public void iterationStarting(Simulation arg0)
iterationStarting
in interface SimulationListener
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |