|
||||||||||
| 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 SimObjectpublic 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 SimObjectpublic void write(java.io.PrintWriter ps)
write in class SimObjectpublic void configure()
SimObject
configure in class SimObjectpublic java.lang.String getBindkey()
getBindkey in class SimObjectpublic void setBindkey(java.lang.String s)
public void keyPressed(java.awt.event.KeyEvent evt)
SimObjectAt the moment this is actually called from KeyHandler.keyTyped(), but this naming mismatch is not considered critical...
keyPressed 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 mouseOrKeyEvent(boolean shiftDown)
public void elaborate(java.lang.Object arg)
elaborate in interface Simulatableelaborate in class SimObjectarg - This parameter is ignored by PowerOnResetpublic void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - 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 ContextToolTipgetToolTip 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 | |||||||||