|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.rtlib.GenericRtlibObject
hades.models.rtlib.io.OpinVector
OpinVector - the HADES RTLIB hierarchy output connector, which may also be used to display the value on a StdLogicVector bus. The default width is 16 bits.
Nested Class Summary |
Nested classes inherited from class hades.models.rtlib.GenericRtlibObject |
GenericRtlibObject.BinaryValueLabelFormatter, GenericRtlibObject.DecimalValueLabelFormatter, GenericRtlibObject.DINColorSource, GenericRtlibObject.FlexibleLabelFormatter, GenericRtlibObject.HexValueLabelFormatter |
Field Summary | |
static int |
BINARY
|
static int |
DECIMAL
|
static int |
HEX
|
protected GenericRtlibObject.FlexibleLabelFormatter |
labelFormatter
|
protected int |
numberFormat
|
protected Port |
port_A
|
protected Port |
port_toplevel
|
protected double |
t_delay
|
Fields inherited from class hades.models.rtlib.GenericRtlibObject |
defaultdelay, delay, enableAnimationFlag, n_bits, valueLabel, vector, vector_000, vector_111, vector_UUU, vector_XXX, vector_ZZZ, vectorOutputPort |
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
OpinVector()
OpinVector(): simple constructor |
Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
constructPorts()
|
void |
evaluate(java.lang.Object arg)
evaluate(): for an OpinVector, this method is only called in hierarchical designs on any change on the toplevel input. |
int |
getNumberFormat()
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message. |
(package private) StdLogicVector |
getVector()
return a reference to our current result value 'vector'. |
boolean |
initialize(java.lang.String s)
initialize an OpinVector from a String which contains the integer version id, the width of this vector, the delay (propagation delay to the next higher hierarchy level), and the default label format (dec/hex/bin). |
void |
mousePressed(java.awt.event.MouseEvent me)
mousePressed: toggle the formatting of the value label between decimal, hex, binary. |
void |
setName(java.lang.String name)
set the name of this SimObject. |
void |
setNumberFormat(java.lang.String s)
|
void |
setSymbol(Symbol s)
|
void |
updateSymbol()
|
void |
write(java.io.PrintWriter ps)
write the following data to PrintWriter ps: our versionId, the width (n_bits), the default delay (propagation delay to the next higher hierarchy level, might be zero), and the default label format (dec=0/hex=1/bin=2) |
Methods inherited from class hades.models.rtlib.GenericRtlibObject |
assign, constructStandardValues, copy, elaborate, getDelay, getEnableAnimationFlag, getFormattedValue, getValue, getWidth, initValueLabel, isConnected, scheduleAfter, scheduleAfter, scheduleVectorOutputPort, setDelay, setDelay, setEnableAnimationFlag, setEnableAnimationFlag, setFormattedValue, setNumberFormat, setValue, setValue, setWidth, setWidth, toString, wakeup, wakeupAfter |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, 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 |
Field Detail |
public static final int DECIMAL
public static final int HEX
public static final int BINARY
protected int numberFormat
protected Port port_A
protected Port port_toplevel
protected double t_delay
protected GenericRtlibObject.FlexibleLabelFormatter labelFormatter
Constructor Detail |
public OpinVector()
Method Detail |
public void constructPorts()
constructPorts
in class GenericRtlibObject
public void setSymbol(Symbol s)
setSymbol
in class GenericRtlibObject
public void setName(java.lang.String name)
SimObject
To avoid consistency problems, when the user changes a SimObject's name interactively, we also try to enforce a unique name.
setName
in class SimObject
public int getNumberFormat()
getNumberFormat
in class GenericRtlibObject
public void setNumberFormat(java.lang.String s)
setNumberFormat
in class GenericRtlibObject
public void updateSymbol()
updateSymbol
in class GenericRtlibObject
StdLogicVector getVector()
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in class SimObject
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- An arbitrary and unused objectpublic void write(java.io.PrintWriter ps)
write
in class GenericRtlibObject
public boolean initialize(java.lang.String s)
initialize
in class GenericRtlibObject
public void configure()
SimObject
configure
in class GenericRtlibObject
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
in class GenericRtlibObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |