public class Stimuli
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
GATE_STRENGTH |
static int |
LOGIC |
static int |
LOGIC_HIGH |
static int |
LOGIC_LOW |
static int |
LOGIC_X |
static int |
LOGIC_Z |
static int |
NODE_STRENGTH |
static int |
OFF_STRENGTH |
static int |
STRENGTH |
static int |
VDD_STRENGTH |
Constructor and Description |
---|
Stimuli()
Constructor to build a new Simulation Data object.
|
Modifier and Type | Method and Description |
---|---|
void |
addControlPoint(Signal<?> sig,
double time)
Method to add a new control point to the list on a signal.
|
void |
addSignalCollection(SignalCollection an) |
void |
clearControlPoints(Signal<?> sig)
Method to clear the list of control points associated with a signal.
|
static java.lang.String |
describeLevel(int state)
Method to describe the level in a given state.
|
static java.lang.String |
describeLevelBriefly(int state)
Method to describe the level in a given state, with only 1 character.
|
static java.lang.String |
describeStrength(int strength)
Method to describe the strength in a given state.
|
SignalCollection |
findSignalCollection(java.lang.String title)
Method to find a SignalCollection with a given name.
|
void |
finished()
Free allocated resources before closing.
|
Cell |
getCell()
Method to return the Cell associated with this simulation data.
|
java.lang.Double[] |
getControlPoints(Signal<?> sig)
Method to return an array of control points associated with a signal.
|
Engine |
getEngine()
Method to return the simulation Engine associated with this simulation data.
|
java.net.URL |
getFileURL()
Method to return a URL to the file containing this simulation data.
|
double |
getMaxTime()
Method to return the rightmost X coordinate of this Stimuli.
|
double |
getMinTime()
Method to return the leftmost X coordinate of this Stimuli.
|
java.lang.String |
getNetDelimiter() |
CachingPageStorage |
getPageStorage() |
char |
getSeparatorChar()
Method to return the separator character for names in this simulation.
|
java.util.Iterator<SignalCollection> |
getSignalCollections() |
WaveformWindow |
getWaveformWindow()
Method to return the WaveformWindow that displays this simulation data.
|
static int |
indexToStrength(int index)
Method to convert a strength index to a strength value.
|
boolean |
isAnalog()
Method to tell whether this simulation data is analog or digital.
|
void |
makeBusSignals(java.util.List<Signal<?>> signalList,
SignalCollection sc)
Method to find busses in a list of signals and create them.
|
static SignalCollection |
newSignalCollection(Stimuli sd,
java.lang.String title) |
static int |
parseLevel(java.lang.String s1)
Method to convert a state representation (L, H, X, Z) to a state
|
void |
removeControlPoint(Signal<?> sig,
double time)
Method to remove control points the list on a signal.
|
void |
setCell(Cell cell)
Method to set the Cell associated with this simulation data.
|
void |
setEngine(Engine engine)
Method to set the simulation Engine associated with this simulation data.
|
void |
setFileURL(java.net.URL fileURL)
Method to set a URL to the file containing this simulation data.
|
void |
setNetDelimiter(java.lang.String d) |
void |
setSeparatorChar(char sep)
Method to set the separator character for names in this simulation.
|
void |
setWaveformWindow(WaveformWindow ww) |
static int |
strengthToIndex(int strength)
Method to convert a strength to an index value.
|
public static final int LOGIC
public static final int LOGIC_LOW
public static final int LOGIC_X
public static final int LOGIC_HIGH
public static final int LOGIC_Z
public static final int STRENGTH
public static final int OFF_STRENGTH
public static final int NODE_STRENGTH
public static final int GATE_STRENGTH
public static final int VDD_STRENGTH
public CachingPageStorage getPageStorage()
public void finished()
public void addSignalCollection(SignalCollection an)
public SignalCollection findSignalCollection(java.lang.String title)
title
- the stimulus name being queried.public void setNetDelimiter(java.lang.String d)
public java.lang.String getNetDelimiter()
public java.util.Iterator<SignalCollection> getSignalCollections()
public void setCell(Cell cell)
cell
- the Cell associated with this simulation data.public Cell getCell()
public void setEngine(Engine engine)
engine
- the simulation Engine associated with this simulation data.public Engine getEngine()
public void setWaveformWindow(WaveformWindow ww)
public char getSeparatorChar()
public void setSeparatorChar(char sep)
sep
- the separator character for names in this simulation.public void setFileURL(java.net.URL fileURL)
fileURL
- a URL to the file containing this simulation data.public java.net.URL getFileURL()
public WaveformWindow getWaveformWindow()
public java.lang.Double[] getControlPoints(Signal<?> sig)
sig
- the signal in question.public void clearControlPoints(Signal<?> sig)
sig
- the signal to clear.public void addControlPoint(Signal<?> sig, double time)
sig
- the signal in question.time
- the time of the new control point.public void removeControlPoint(Signal<?> sig, double time)
sig
- the signal in question.time
- the time of the control point to delete.public double getMinTime()
public double getMaxTime()
public boolean isAnalog()
public static int strengthToIndex(int strength)
strength
- strength level.public static int indexToStrength(int index)
index
- a strength index (0-based).public static java.lang.String describeLevel(int state)
state
- the given state.public static java.lang.String describeLevelBriefly(int state)
state
- the given state.public static int parseLevel(java.lang.String s1)
s1
- character string that contains state value.public static java.lang.String describeStrength(int strength)
strength
- the given strength.public static SignalCollection newSignalCollection(Stimuli sd, java.lang.String title)
public void makeBusSignals(java.util.List<Signal<?>> signalList, SignalCollection sc)
signalList
- the list of signals.sc
- the SignalCollection in which the signals reside.