|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.simulation.WaveformImpl
public class WaveformImpl
Simple implementation of Waveform interface
| Constructor Summary | |
|---|---|
WaveformImpl(double[] time,
double[] value)
Constructs waveform from time and value arrays. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WaveformImpl(double[] time,
double[] value)
time - time arrayvalue - value array
java.lang.IllegalArgumentException - if time and value arrays have different size| Method Detail |
|---|
public int getNumEvents()
getNumEvents in interface Waveform
public void getEvent(int index,
double[] result)
getEvent in interface Waveformindex - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||