|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulator_lib.SimulatorInput
public class SimulatorInput
The SimulatorInput class assists the TraceSimulator driver program in reading and parsing data from the provided trace file.
Field Summary | |
---|---|
private long |
generator_seed
The seed used to generate the trace being read. |
private Globals |
GLOBALS
The Network parameterization object. |
private java.io.BufferedReader |
in
Input stream/reader from the trace file. |
Constructor Summary | |
---|---|
SimulatorInput(java.lang.String input)
Construct a SimulatorInput object |
Method Summary | |
---|---|
long |
getGenSeed()
Return the random seed used to to generate the trace file. |
Globals |
parseGlobals()
Parse the trace file into a Network parameterization object. |
void |
parseLibraries(Network nw)
Parse file data from trace, use it to populate file portion of Network. |
Transaction |
parseNextTransaction()
Parse next transaction from the trace file. |
void |
parseUsers(Network nw)
Parse user data from trace, use it to populate user portion of Network. |
void |
shutdown()
Shutdown (close) the input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Globals GLOBALS
private long generator_seed
private java.io.BufferedReader in
Constructor Detail |
---|
public SimulatorInput(java.lang.String input)
input
- Filename/path to the trace file to openMethod Detail |
---|
public Globals parseGlobals() throws java.io.IOException
java.io.IOException
public long getGenSeed()
public void parseUsers(Network nw) throws java.io.IOException
nw
- The Network whose user data should be populated
java.io.IOException
public void parseLibraries(Network nw) throws java.io.IOException
nw
- The Network whose file data should be populated
java.io.IOException
public Transaction parseNextTransaction() throws java.io.IOException
java.io.IOException
public void shutdown() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |