|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.ruge.Constant
Constant - a SimObject that generates an (editable but constant) integer value.
Field Summary | |
protected int |
defaultValue
|
protected Port |
port_Y
|
protected double |
t_delay
|
protected java.lang.Integer |
value
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
Constant()
|
Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
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. |
java.lang.Integer |
getValue()
|
boolean |
initialize(java.lang.String s)
initialize a Constant from a String that contains the integer version id of and the default output value, e.g. |
void |
mousePressed(java.awt.event.MouseEvent evt)
react to a MouseEvent. |
void |
schedule()
|
void |
setValue(java.lang.Integer _value)
|
void |
setValue(java.lang.String s)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
updateColors()
|
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown |
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 |
protected Port port_Y
protected java.lang.Integer value
protected double t_delay
protected int defaultValue
Constructor Detail |
public Constant()
Method Detail |
public java.lang.Integer getValue()
public void setValue(java.lang.Integer _value)
public void setValue(java.lang.String s)
public void elaborate(java.lang.Object arg)
Simulatable
elaborate
in interface Simulatable
elaborate
in class SimObject
public void evaluate(java.lang.Object arg)
Simulatable
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- an arbitrary object argumentpublic void schedule()
public void updateColors()
public void mousePressed(java.awt.event.MouseEvent evt)
SimObject
Note that the HADES schematic editor will also deliver jfig.canvas.FigCanvasEvent object, which also include the world-coordinates of the Event.
mousePressed
in class SimObject
public void configure()
SimObject
configure
in class SimObject
public boolean initialize(java.lang.String s)
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public java.lang.String toString()
toString
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |