com.sun.electric.tool.simulation
Class AnalogSignal

java.lang.Object
  extended by com.sun.electric.tool.simulation.Signal
      extended by com.sun.electric.tool.simulation.AnalogSignal

public class AnalogSignal
extends Signal

Class to define an analog signal in the simulation waveform window.


Field Summary
 
Fields inherited from class com.sun.electric.tool.simulation.Signal
bounds, leftEdge, rightEdge
 
Constructor Summary
protected AnalogSignal(AnalogAnalysis an)
          Constructor for an analog signal.
 
Method Summary
protected  void calcBounds()
          Method to compute the low and high range of time and value on this signal.
 AnalogAnalysis getAnalysis()
          Method to return the AnalogAnalysis in which this signal resides.
 int getIndexInAnalysis()
          Method to return the index of this AnalogSignal in its AnalogAnalysis.
 int getNumSweeps()
          Method to return the number of sweeps in this signal.
 Waveform getWaveform(int sweep)
          Method to return the waveform of this signal in specified sweep.
 
Methods inherited from class com.sun.electric.tool.simulation.Signal
addControlPoint, clearControlPoints, finished, getBounds, getControlPoints, getFullName, getLeftEdge, getRightEdge, getSignalContext, getSignalName, removeControlPoint, setSignalContext, setSignalName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalogSignal

protected AnalogSignal(AnalogAnalysis an)
Constructor for an analog signal.

Parameters:
an - the AnalogAnalysis object in which this signal will reside.
Method Detail

getAnalysis

public AnalogAnalysis getAnalysis()
Method to return the AnalogAnalysis in which this signal resides.

Specified by:
getAnalysis in class Signal
Returns:
the AnalogAnalysis in which this signal resides.

getIndexInAnalysis

public int getIndexInAnalysis()
Method to return the index of this AnalogSignal in its AnalogAnalysis.

Returns:
the index of this AnalogSignal in its AnalogAnalysis.

getWaveform

public Waveform getWaveform(int sweep)
Method to return the waveform of this signal in specified sweep.

Parameters:
sweep - sweep index
Returns:
the waveform of this signal in specified sweep.

getNumSweeps

public int getNumSweeps()
Method to return the number of sweeps in this signal.

Returns:
the number of sweeps in this signal. If this signal is not a sweep signal, returns 1.

calcBounds

protected void calcBounds()
Method to compute the low and high range of time and value on this signal. The result is stored in the "bounds", "leftEdge", and "rightEdge" field variables.

Overrides:
calcBounds in class Signal