|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.sys.GeneratorFileIO
public class GeneratorFileIO
This class encapsulates all essential data structures such that it may be saved or opened via file I/O.
Field Summary | |
---|---|
private java.util.Vector<Drawable> |
myListDrawable
The list of graphical shapes on the GUI. |
private int |
nextAgentId
The next available agent identifier. |
private static long |
serialVersionUID
Default serial version UID. |
private SimulationData |
simData
The simulation data internal representation. |
Constructor Summary | |
---|---|
GeneratorFileIO(java.util.Vector<Drawable> myListDrawable,
SimulationData simData,
int nextAgentId)
Three-argument constructor. |
Method Summary | |
---|---|
java.util.Vector<Drawable> |
getMyListDrawable()
Returns a list of graphical shapes that can be displayed on the GUI. |
int |
getNextAgentId()
Returns the next avaiable agent identifier. |
SimulationData |
getSimData()
Returns the main simulation data structure. |
void |
setMyListDrawable(java.util.Vector<Drawable> myListDrawable)
Sets the list of graphical shapes. |
void |
setNextAgentId(int nextAgentId)
Sets the next available agent identifier. |
void |
setSimData(SimulationData simData)
Sets the simulation data structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.util.Vector<Drawable> myListDrawable
private SimulationData simData
private int nextAgentId
Constructor Detail |
---|
public GeneratorFileIO(java.util.Vector<Drawable> myListDrawable, SimulationData simData, int nextAgentId)
myListDrawable
- The list of graphical shapes to be displayed on the GUI.simData
- The main simulation data structure.nextAgentId
- The next available agent identifier to assign.Method Detail |
---|
public java.util.Vector<Drawable> getMyListDrawable()
public void setMyListDrawable(java.util.Vector<Drawable> myListDrawable)
myListDrawable
- A list of graphical shapes.public SimulationData getSimData()
public void setSimData(SimulationData simData)
simData
- A new simulation data structure.public int getNextAgentId()
public void setNextAgentId(int nextAgentId)
nextAgentId
- The next available agent identifier.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |