|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.emulator.SimpleUserClass
public abstract class SimpleUserClass
Provides a simple method of implementing EmulatorUserClass. Most user code should extend this class.
This class provides convenient references to many essential emulator classes such as the signal environment, the world, the nodes, etc.
Field Summary | |
---|---|
protected DaemonCommunicator |
dComm
|
protected Emulator |
emulator
|
protected EmuNode[] |
emuNodes
|
protected int |
numNodes
|
protected SignalEnvironment |
sigEnv
|
protected EmuWorld |
world
|
Constructor Summary | |
---|---|
SimpleUserClass()
|
Method Summary | |
---|---|
void |
start(Emulator emulator,
String[] args)
This is the method that gets called by the classloader after loading the user defined classes. |
abstract void |
start(String[] args)
User code must implement this method which will be the first method called after the class is loaded by the emulator. |
void |
updateChannelGroup()
This is the method that update the Channel Group for multi-band channel simulation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Emulator emulator
protected EmuWorld world
protected SignalEnvironment sigEnv
protected DaemonCommunicator dComm
protected EmuNode[] emuNodes
protected int numNodes
Constructor Detail |
---|
public SimpleUserClass()
Method Detail |
---|
public void start(Emulator emulator, String[] args)
start
in interface EmulatorUserClass
emulator
- The Emulator object passed to the user class
so that they have access to the internal
data structures of the emulator.public void updateChannelGroup()
public abstract void start(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |