|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.gates.GenericGate
GenericGate - base class to provide common stuff for logic gates. All Signals are expected to be StdLogic1164 objects. This class provides one timing parameter for the gate propagation delay.
Field Summary | |
protected double |
t_delay
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
GenericGate()
|
Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
SimObject |
copy()
create a copy of the current GenericGate with the same gate delay. |
void |
elaborate(java.lang.Object arg)
elaborate: just store a reference to the current simulator |
double |
getDelay()
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message for a logic gate with name, class name, and gate delay. |
boolean |
initialize(java.lang.String s)
initialize a GenericGate from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g. |
void |
scheduleEvent(Signal signal,
double time,
StdLogic1164 value,
Port port)
utility method to schedule a simulator event at the given simulation time. |
void |
scheduleEventAfter(Signal signal,
double delay,
StdLogic1164 value,
Port port)
utility method to schedule a simulator event, after delay seconds from the current simulation time. |
void |
scheduleOutputValue(Port port,
StdLogic1164 value,
double time)
utility method to schedule a simulator event at the given simulation time |
void |
scheduleOutputValueAfter(Port port,
StdLogic1164 value,
double delay)
utility method to schedule a simulator event, after delay seconds from the current simulation time. |
void |
setDelay(double t)
|
void |
setDelay(java.lang.String s)
|
void |
write(java.io.PrintWriter ps)
write "versionId" and gate delay "t_delay" |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, evaluate, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
evaluate, message |
Field Detail |
protected double t_delay
Constructor Detail |
public GenericGate()
Method Detail |
public double getDelay()
public void setDelay(double t)
public void setDelay(java.lang.String s)
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 void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
public void scheduleEvent(Signal signal, double time, StdLogic1164 value, Port port)
public void scheduleEventAfter(Signal signal, double delay, StdLogic1164 value, Port port)
public void scheduleOutputValue(Port port, StdLogic1164 value, double time)
public void scheduleOutputValueAfter(Port port, StdLogic1164 value, double delay)
public SimObject copy()
copy
in class SimObject
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |