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 |
addAnalysis(Analysis an) |
void |
addControlPoint(Signal sig,
double time)
Method to add a new control point to the list on a signal.
|
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.
|
Analysis |
findAnalysis(Analysis.AnalysisType type)
Method to find an Analysis of a given type.
|
void |
finished()
Free allocated resources before closing.
|
java.util.Iterator<Analysis> |
getAnalyses() |
java.awt.geom.Rectangle2D |
getBounds()
Method to compute the time and value bounds of this simulation data.
|
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.
|
FileType |
getDataType()
Method to return the type of this simulation data.
|
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 |
getLeftEdge()
Method to return the leftmost X coordinate of this Stimuli.
|
int |
getNumAnalyses() |
double |
getRightEdge()
Method to return the rightmost X coordinate of this Stimuli.
|
char |
getSeparatorChar()
Method to return the separator character for names in this simulation.
|
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.
|
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 |
setDataType(FileType type)
Method to set the type of 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 |
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 void finished()
public void addAnalysis(Analysis an)
public Analysis findAnalysis(Analysis.AnalysisType type)
type
- the stimulus type being queried.public int getNumAnalyses()
public java.util.Iterator<Analysis> getAnalyses()
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 setDataType(FileType type)
type
- the type of this simulation data.public FileType getDataType()
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 java.awt.geom.Rectangle2D getBounds()
public double getLeftEdge()
public double getRightEdge()
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.