|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.io.PowerOnReset
PowerOnReset - (active low) power on reset generator. Default is a 10msec zero impulse.
After the initial power-on-reset impulse, the POR may be used as a standard HADES input switch.
xxxxxxxxx______------------------------- ^ ^ ^ t=0 t_o t_o+t_active
Field Summary |
Fields inherited from class hades.simulator.SimObject |
classloader, console, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
PowerOnReset()
PowerOnReset(): simple constructor |
|
PowerOnReset(Design parent,
java.lang.String name)
|
|
PowerOnReset(Design parent,
java.lang.String name,
double t_offset,
double t_active)
|
Method Summary | |
void |
assign(java.lang.String value,
double time)
specify a new output value from an external source (like a script). |
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.String |
getBindkey()
return our bindkey as a String |
double |
getT_active()
|
double |
getT_offset()
|
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 PowerOnReset from a String, which contains the integer version id, and the offset and active times (in seconds). |
void |
keyPressed(java.awt.event.KeyEvent evt)
react to a KeyEvent. |
void |
mouseOrKeyEvent(boolean shiftDown)
start or stop this PowerOnReset'erator |
void |
mousePressed(java.awt.event.MouseEvent me)
react to a MouseEvent. |
double |
parse(java.lang.String s)
|
void |
schedule(double time,
StdLogic1164 value,
boolean interactive)
|
void |
setBindkey(java.lang.String s)
|
void |
setSymbol(Symbol s)
|
void |
setT_active(double d)
|
void |
setT_active(java.lang.String s)
|
void |
setT_offset(double d)
|
void |
setT_offset(java.lang.String s)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
wakeup(java.lang.Object arg)
wakeup: this method is only used to handle "external" events on this PowerOnReset in reaction to an assign() call, which schedules a Wakeup event to update the symbol at the correct simulation time. |
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, 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 |
Constructor Detail |
public PowerOnReset()
public PowerOnReset(Design parent, java.lang.String name)
public PowerOnReset(Design parent, java.lang.String name, double t_offset, double t_active)
Method Detail |
public void setSymbol(Symbol s)
setSymbol
in class SimObject
public double getT_offset()
public double getT_active()
public void setT_offset(double d)
public void setT_active(double d)
public void setT_offset(java.lang.String s)
public void setT_active(java.lang.String s)
public double parse(java.lang.String s)
public boolean initialize(java.lang.String s)
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public void configure()
SimObject
configure
in class SimObject
public java.lang.String getBindkey()
getBindkey
in class SimObject
public void setBindkey(java.lang.String s)
public void keyPressed(java.awt.event.KeyEvent evt)
SimObject
At the moment this is actually called from KeyHandler.keyTyped(), but this naming mismatch is not considered critical...
keyPressed
in class SimObject
public void mousePressed(java.awt.event.MouseEvent me)
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 mouseOrKeyEvent(boolean shiftDown)
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
arg
- This parameter is ignored by PowerOnResetpublic void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- An arbitrary and unused objectpublic void wakeup(java.lang.Object arg)
wakeup
in interface Wakeable
public void schedule(double time, StdLogic1164 value, boolean interactive)
public void assign(java.lang.String value, double time)
Internally, the latter graphical symbol update is implemented via a Wakeup event for this Ipin.
assign
in interface Assignable
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
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 |