|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.apps.Viewers.Waves.WavesWireManager
WavesWireManager.java This class keeps track of the wires: when wires are added or removed, etc. It also updates the wires at each cycle or step; the data is extracted from the wires and sent to the WavesDataManager. This class also provides some functionality for saving wave data and finding specified cycles for the "Go to cycle" command. This can be used in applications other than jab.
Constructor Summary | |
WavesWireManager()
Deprecated. |
|
WavesWireManager(JHDLHostWidgetInterface hwi)
Constructs a new WavesWireManager--New constructor, so that this panel can pass the JHDLHostWidgetInterface to its parent to get the call chain ready to be initialized. |
Method Summary | |
boolean |
addWatch(Wire toAdd)
|
boolean |
addWatch(Wire toAdd,
java.lang.String wireName)
|
void |
closeView()
removew all watched wires and SimulatorCallback |
WavesDataManager |
getWavesDataManager()
|
boolean |
isEmpty()
|
boolean |
isWatched(java.lang.String key)
|
boolean |
removeSelected()
|
void |
removeWatch(java.lang.String wireName)
|
void |
reset()
|
void |
simulatorRefresh(int cycle,
int phase)
This method is called after each simulation run. |
void |
simulatorReset()
This method will be called after the simulation has been reset. |
void |
simulatorUpdate(int cycle,
int phase)
This method is called after each simulation event. |
void |
update()
Updates the data to keep up with the simulator, updated at each step. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WavesWireManager()
public WavesWireManager(JHDLHostWidgetInterface hwi)
hwi
- The JHDLHostWidgetInterface this panel will send to
its parent.Method Detail |
public void update()
public void reset()
public boolean isEmpty()
public boolean addWatch(Wire toAdd)
public boolean addWatch(Wire toAdd, java.lang.String wireName)
public boolean isWatched(java.lang.String key)
public boolean removeSelected()
public void removeWatch(java.lang.String wireName)
public void closeView()
public void simulatorRefresh(int cycle, int phase)
SimulatorCallback
simulatorRefresh
in interface SimulatorCallback
cycle
- The current cycle number of the simulator. This
value is the same as the value generated by the call
HWSystem.getTotalClockCount()
.phase
- The current phase of the simulator. This
value is the same as the value generated by the call
HWSystem.getCurrentStepCount()
.public void simulatorUpdate(int cycle, int phase)
SimulatorCallback
simulatorUpdate
in interface SimulatorCallback
cycle
- The current cycle number of the simulator. This
value is the same as the value generated by the call
HWSystem.getTotalClockCount()
.phase
- The current phase of the simulator. This
value is the same as the value generated by the call
HWSystem.getCurrentStepCount()
.public void simulatorReset()
SimulatorCallback
Initializeable
interface,
this method is called after every simulator reset. This
method can be used to reset variables associated with watching
the progress of a simulation. Note that the cycle and phase
number is reset to zero before this call is made.
simulatorReset
in interface SimulatorCallback
public WavesDataManager getWavesDataManager()
getWavesDataManager
in interface WavesDataInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |