public abstract class Analysis<S extends Signal>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Analysis.AnalysisType |
Modifier and Type | Field and Description |
---|---|
static Analysis.AnalysisType |
ANALYSIS_AC
indicates AC analysis
|
static Analysis.AnalysisType |
ANALYSIS_DC
indicates DC analysis
|
static Analysis.AnalysisType |
ANALYSIS_MEAS
indicates Measurement data
|
static Analysis.AnalysisType |
ANALYSIS_SIGNALS
indicates general signals
|
static Analysis.AnalysisType |
ANALYSIS_TRANS
indicates transient analysis
|
Constructor and Description |
---|
Analysis(Stimuli sd,
Analysis.AnalysisType type,
boolean extrapolateToRight)
Constructor for a collection of simulation data.
|
Modifier and Type | Method and Description |
---|---|
void |
addSignal(S ws)
Method to add a new signal to this Simulation Data object.
|
boolean |
extrapolateValues()
Method to tell whether signal values should be extrapolated to the
right side of the waveform window.
|
S |
findSignalForNetwork(java.lang.String netName)
Method to return the signal that corresponds to a given Network name.
|
S |
findSignalForNetworkQuickly(java.lang.String netName)
Method to quickly return the signal that corresponds to a given Network name.
|
void |
finished()
Free allocated resources before closing.
|
Analysis.AnalysisType |
getAnalysisType()
Method to return the type of data currently being manipulated.
|
static java.lang.String |
getBaseNameFromExtractedNet(java.lang.String signalFullName) |
java.awt.geom.Rectangle2D |
getBounds()
Method to compute the time and value bounds of this simulation data.
|
double |
getLeftEdge()
Method to return the leftmost X coordinate of this Analysis.
|
double |
getRightEdge()
Method to return the rightmost X coordinate of this Analysis.
|
java.util.List<S> |
getSignals()
Method to get the list of signals in this Simulation Data object.
|
java.util.List<S> |
getSignalsFromExtractedNet(Signal ws)
Get a list of signals that are from the same network.
|
Stimuli |
getStimuli()
Method to return the Stimuli in which this Analysis resides.
|
abstract boolean |
isAnalog()
Method to tell whether this simulation data is analog or digital.
|
void |
nameSignal(S ws,
java.lang.String sigName) |
void |
setBoundsDirty() |
public static final Analysis.AnalysisType ANALYSIS_SIGNALS
public static final Analysis.AnalysisType ANALYSIS_TRANS
public static final Analysis.AnalysisType ANALYSIS_AC
public static final Analysis.AnalysisType ANALYSIS_DC
public static final Analysis.AnalysisType ANALYSIS_MEAS
public Analysis(Stimuli sd, Analysis.AnalysisType type, boolean extrapolateToRight)
sd
- Stimuli that this analysis is part of.type
- the type of this analysis.extrapolateToRight
- true to draw the last value to the right
(useful for IRSIM and other digital simulations).
False to stop drawing signals after their last value
(useful for Spice and other analog simulations).public void finished()
public Stimuli getStimuli()
public Analysis.AnalysisType getAnalysisType()
public boolean extrapolateValues()
public java.util.List<S> getSignals()
public void nameSignal(S ws, java.lang.String sigName)
public void addSignal(S ws)
ws
- the signal to add.
Instead of a "Signal", use either DigitalSignal or AnalogSignal.public static java.lang.String getBaseNameFromExtractedNet(java.lang.String signalFullName)
public java.util.List<S> getSignalsFromExtractedNet(Signal ws)
ws
- the signalpublic java.awt.geom.Rectangle2D getBounds()
public double getLeftEdge()
public double getRightEdge()
public void setBoundsDirty()
public abstract boolean isAnalog()
public S findSignalForNetworkQuickly(java.lang.String netName)
netName
- the Network name to find.public S findSignalForNetwork(java.lang.String netName)
netName
- the Network name to find.