|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulator_lib.SimulatorOutput
public class SimulatorOutput
The SimulatorOutput class assists the TraceSimulator driver program in writing data to the output/statistics file.
Field Summary | |
---|---|
private java.io.PrintWriter |
out
Stream to the output/statistics file. |
Constructor Summary | |
---|---|
SimulatorOutput(java.lang.String filename)
Construct a SimulatorOutput object. |
Method Summary | |
---|---|
private java.lang.String |
print(SimulatorMalicious.MAL_STRATEGY STRATEGY)
Return a string representation of a MAL_STRATEGY enumeration element. |
void |
printHeader(Globals GLOBALS,
long gen_seed,
TrustAlg TALG,
SimulatorMalicious.MAL_STRATEGY STRATEGY)
Write header to the output/statistics file, mostly global variable data. |
void |
printStatistics(Globals GLOBALS,
Statistics STATS)
Write final statistics to the output/statics file. |
void |
shutdown()
Shutdown (flush and close) the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.PrintWriter out
Constructor Detail |
---|
public SimulatorOutput(java.lang.String filename)
filename
- Path/filename of the output file to be writtenMethod Detail |
---|
public void printHeader(Globals GLOBALS, long gen_seed, TrustAlg TALG, SimulatorMalicious.MAL_STRATEGY STRATEGY)
GLOBALS
- The Network parameterization objectgen_seed
- Random seed used in trace generationTALG
- The trust algorithm being used for this runSTRATEGY
- Malicious strategy being applied during this simulationpublic void printStatistics(Globals GLOBALS, Statistics STATS)
GLOBALS
- The Network parameterization objectSTATS
- The statistical variable wrapper objectpublic void shutdown()
private java.lang.String print(SimulatorMalicious.MAL_STRATEGY STRATEGY)
STRATEGY
- MAL_STRATEGY enumeration element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |