com.sun.electric.tool.simulation
Interface Waveform

All Known Implementing Classes:
ComplexWaveform, WaveformImpl

public interface Waveform

Waveform - piecewise linear real function of time


Method Summary
 void getEvent(int index, double[] result)
          Method to return the value of this signal at a given event index.
 int getNumEvents()
          Method to return the number of events in this signal.
 

Method Detail

getNumEvents

int getNumEvents()
Method to return the number of events in this signal. This is the number of events along the horizontal axis, usually "time".

Returns:
the number of events in this signal.

getEvent

void getEvent(int index,
              double[] result)
Method to return the value of this signal at a given event index.

Parameters:
index - the event index (0-based).
result - double array of length 3 to return (time, lowValue, highValue) If this signal is not a basic signal, return 0 and print an error message.