|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Environment
This interface should be implemented in order to define some aspect
of the network's environment. Environment objects can be made
Configurable and an appropriate gui will be generated.
| Method Summary | |
|---|---|
java.lang.String |
getName()
Gets a name for this Environment object |
SerializableState |
getState()
This method should be implemented to produce an object that will be placed into the SimulatorState object that is passed
to the GUI. |
void |
init(SpeckSim simulator)
Called whenever the simulator is reset |
| Method Detail |
|---|
java.lang.String getName()
Environment object
void init(SpeckSim simulator)
simulator - The simulator that owns this environment objectSerializableState getState()
SimulatorState object that is passed
to the GUI. Any data that you want to visualise, generate
statistics on, etc, should be produced here. The implementation
should not assume that init() has been called, and should always
return an instance if possible. Pass null if
there is no interesting data
Environment, or
null if no data is required
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||