|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.special.ValueTrigger
ValueTrigger - a class to detect and react to selected events (values) on SignalStdLogic1164 signals.
For example, a ValueTrigger object may be used as a 'breakpoint' which pauses the simulation on certain input values.
| Field Summary | |
int |
_0
|
int |
_0L
|
int |
_1
|
int |
_1H
|
int |
_ANY
|
int |
_D
|
int |
_H
|
int |
_L
|
int |
_NONE
|
int |
_U
|
int |
_UX
|
int |
_W
|
int |
_X
|
int |
_Z
|
int |
_ZWLHD
|
(package private) javax.swing.JPanel |
actionPanel
|
protected int |
activeValue
|
(package private) javax.swing.JCheckBox |
beepCB
|
protected boolean |
beepFlag
|
(package private) javax.swing.JPanel |
buttonPanel
|
(package private) javax.swing.JButton |
closeButton
|
(package private) javax.swing.JCheckBox |
logMessageCB
|
protected boolean |
logMessageFlag
|
(package private) javax.swing.JCheckBox |
pauseSimulationCB
|
protected boolean |
pauseSimulationFlag
|
protected Label |
symbolTypeLabel
|
(package private) javax.swing.JFrame |
topFrame
|
(package private) StdLogic1164 |
value_0
|
(package private) StdLogic1164 |
value_1
|
(package private) javax.swing.JComboBox |
valueChoice
|
protected java.lang.String[] |
valueNames
|
(package private) javax.swing.JPanel |
valuePanel
|
| Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
| Constructor Summary | |
ValueTrigger()
ValueTrigger(): simple constructor |
|
| Method Summary | |
(package private) void |
buildActionPanel()
|
(package private) void |
buildButtonPanel()
|
void |
buildGUI()
|
void |
buildGUICallbacks()
|
(package private) void |
buildValuePanel()
|
void |
changeName()
|
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
SimObject |
copy()
copy(): create a clone of the current ValueTrigger, including its color |
void |
elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize the simulation object. |
void |
evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that concern this object. |
static java.lang.String |
formatPaddedLong(long value,
int n_chars)
|
StdLogic1164 |
getInputValue(Port p)
|
java.awt.Component |
getPropertySheet()
return a reference to the 'property sheet' or configuration window for this SimObject. |
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message for a SimObject. |
boolean |
initialize(java.lang.String s)
initialize a SimObject from a String. |
void |
itemStateChanged(java.awt.event.ItemEvent evt)
|
static void |
main(java.lang.String[] argv)
main(): simple selftest of the ValueTrigger's GUI |
boolean |
match(StdLogic1164 value_A,
int intValue)
|
void |
mousePressed(java.awt.event.MouseEvent me)
react to a MouseEvent. |
void |
setSymbol(Symbol s)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
trigger(java.lang.Object arg)
|
void |
write(java.io.PrintWriter ps)
|
| Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hades.simulator.Simulatable |
message |
| Field Detail |
StdLogic1164 value_0
StdLogic1164 value_1
public final int _U
public final int _X
public final int _0
public final int _1
public final int _Z
public final int _L
public final int _H
public final int _W
public final int _D
public final int _0L
public final int _1H
public final int _UX
public final int _ZWLHD
public final int _ANY
public final int _NONE
protected java.lang.String[] valueNames
protected int activeValue
protected boolean pauseSimulationFlag
protected boolean beepFlag
protected boolean logMessageFlag
protected Label symbolTypeLabel
javax.swing.JFrame topFrame
javax.swing.JPanel valuePanel
javax.swing.JPanel buttonPanel
javax.swing.JPanel actionPanel
javax.swing.JComboBox valueChoice
javax.swing.JButton closeButton
javax.swing.JCheckBox beepCB
javax.swing.JCheckBox pauseSimulationCB
javax.swing.JCheckBox logMessageCB
| Constructor Detail |
public ValueTrigger()
| Method Detail |
public void setSymbol(Symbol s)
setSymbol in class SimObjectvoid buildValuePanel()
void buildActionPanel()
void buildButtonPanel()
public void buildGUI()
public void buildGUICallbacks()
public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged in interface java.awt.event.ItemListenerpublic void changeName()
public void write(java.io.PrintWriter ps)
write in class SimObjectpublic boolean initialize(java.lang.String s)
SimObject
initialize in class SimObjectpublic void configure()
SimObject
configure in class SimObjectpublic java.awt.Component getPropertySheet()
SimObject
getPropertySheet in class SimObjectpublic void mousePressed(java.awt.event.MouseEvent me)
SimObjectNote that the HADES schematic editor will also deliver jfig.canvas.FigCanvasEvent object, which also include the world-coordinates of the Event.
mousePressed in class SimObjectpublic void elaborate(java.lang.Object arg)
elaborate in interface Simulatableelaborate in class SimObjectarg - This parameter is ignored by ValueTriggerpublic StdLogic1164 getInputValue(Port p)
public void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - An arbitrary and unused object
public boolean match(StdLogic1164 value_A,
int intValue)
public void trigger(java.lang.Object arg)
public static java.lang.String formatPaddedLong(long value,
int n_chars)
public SimObject copy()
copy in class SimObject
public java.lang.String getToolTip(java.awt.Point position,
long millis)
SimObject
getToolTip in interface ContextToolTipgetToolTip in class SimObjectpublic java.lang.String toString()
toString in class SimObjectpublic static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||