public class AnalogAnalysis extends Analysis<AnalogSignal>
Analysis.AnalysisType
ANALYSIS_AC, ANALYSIS_DC, ANALYSIS_MEAS, ANALYSIS_SIGNALS, ANALYSIS_TRANS
Constructor and Description |
---|
AnalogAnalysis(Stimuli sd,
Analysis.AnalysisType type,
boolean extrapolateToRight)
Constructor for a collection of analog simulation data.
|
Modifier and Type | Method and Description |
---|---|
AnalogSignal |
addSignal(java.lang.String signalName,
java.lang.String signalContext,
double[] values)
Create new AnalogSignal with specified name.
|
AnalogSignal |
addSignal(java.lang.String signalName,
java.lang.String signalContext,
double minTime,
double maxTime,
double minValue,
double maxValue)
Create new AnalogSignal with specified name.
|
void |
addSweep(java.lang.Object obj)
Method to add information about another sweep in this simulation data.
|
void |
buildCommonTime(int numEvents)
Method to construct an array of time values that are common to all signals.
|
void |
finished()
Free allocated resources before closing.
|
double[] |
getCommonTimeArray()
Method to get the array of time entries for this signal.
|
int |
getNumSweeps()
Method to return the number of sweep objects in this simulation data.
|
java.lang.Object |
getSweep(int i)
Method to return sweep object in a given position.
|
Waveform |
getWaveform(AnalogSignal signal,
int sweep)
Method to return the waveform of specified signal in specified sweep.
|
boolean |
isAnalog()
Method to tell whether this simulation data is analog or digital.
|
protected Waveform[] |
loadWaveforms(AnalogSignal signal) |
void |
setCommonTime(int index,
double time)
Method to load an entry in the common time array.
|
addSignal, extrapolateValues, findSignalForNetwork, findSignalForNetworkQuickly, getAnalysisType, getBaseNameFromExtractedNet, getBounds, getLeftEdge, getRightEdge, getSignals, getSignalsFromExtractedNet, getStimuli, nameSignal, setBoundsDirty
public AnalogAnalysis(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()
finished
in class Analysis<AnalogSignal>
public boolean isAnalog()
Analysis
isAnalog
in class Analysis<AnalogSignal>
public void addSweep(java.lang.Object obj)
obj
- sweep information (typically a Double).public int getNumSweeps()
public java.lang.Object getSweep(int i)
i
- the position to get.public void buildCommonTime(int numEvents)
numEvents
- the number of time events in the common time array.public void setCommonTime(int index, double time)
index
- the entry number.time
- the time value atpublic double[] getCommonTimeArray()
public AnalogSignal addSignal(java.lang.String signalName, java.lang.String signalContext, double[] values)
signalName
- signal name.signalContext
- a common prefix for the signal name.values
- specified valuespublic AnalogSignal addSignal(java.lang.String signalName, java.lang.String signalContext, double minTime, double maxTime, double minValue, double maxValue)
signalName
- signal name.signalContext
- a common prefix for the signal name.minValue
- the minimum value.maxValue
- the maximum value.public Waveform getWaveform(AnalogSignal signal, int sweep)
signal
- specified signalsweep
- sweep indexprotected Waveform[] loadWaveforms(AnalogSignal signal)