|
||||||||||
| 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 Simulatableelaborate in class SimObjectpublic void evaluate(java.lang.Object arg)
Simulatable
evaluate in interface Simulatableevaluate in class SimObjectarg - an arbitrary object argumentpublic void schedule()
public void updateColors()
public void mousePressed(java.awt.event.MouseEvent evt)
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 configure()
SimObject
configure in class SimObjectpublic boolean initialize(java.lang.String s)
initialize in class SimObjectpublic void write(java.io.PrintWriter ps)
write in class SimObjectpublic java.lang.String toString()
toString in class SimObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||