|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.simulation.Signal
com.sun.electric.tool.simulation.DigitalSignal
public class DigitalSignal
Class to define a digital signal in the simulation waveform window.
| Field Summary |
|---|
| Fields inherited from class com.sun.electric.tool.simulation.Signal |
|---|
bounds, leftEdge, rightEdge |
| Constructor Summary | |
|---|---|
DigitalSignal(DigitalAnalysis an)
Constructor for a digital signal. |
|
| Method Summary | |
|---|---|
void |
addToBussedSignalList(DigitalSignal ws)
Method to add a signal to this bus signal. |
void |
buildBussedSignalList()
Method to request that this signal be a bus. |
void |
buildState(int numEvents)
Method to initialize this simulation signal with a specified number of events. |
void |
buildTime(int numEvents)
Method to build a time vector for this TimedSignal. |
protected void |
calcBounds()
Method to compute the low and high range of time value on this signal. |
void |
clearBussedSignalList()
Method to request that this bussed signal be cleared of all signals on it. |
void |
finished()
|
DigitalAnalysis |
getAnalysis()
Method to return the DigitalAnalysis in which this signal resides. |
java.util.List<DigitalSignal> |
getBussedSignals()
Method to return a List of signals on this bus signal. |
int |
getNumEvents()
Method to return the number of events in this signal. |
int |
getState(int index)
Method to get the state of this signal at a given event. |
int[] |
getStateVector()
Method to return the state information for all events in this signal. |
double |
getTime(int index)
Method to return the value of time for a given event on this TimedSignal. |
double[] |
getTimeVector()
Method to return the time vector for this TimedSignal. |
boolean |
isInBus()
Method to tell whether this signal is part of a bus. |
void |
setState(int index,
int st)
Method to set the state of this signal at a given event. |
void |
setStateVector(int[] state)
Method to set the state information for all events in this signal. |
void |
setTime(int entry,
double t)
Method to set an individual time entry for this TimedSignal. |
void |
setTimeVector(double[] time)
Method to set the time vector for this TimedSignal. |
| Methods inherited from class com.sun.electric.tool.simulation.Signal |
|---|
addControlPoint, clearControlPoints, 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 |
|---|
public DigitalSignal(DigitalAnalysis an)
an - the DigitalAnalysis object in which this signal will reside.| Method Detail |
|---|
public void finished()
finished in class Signalpublic DigitalAnalysis getAnalysis()
getAnalysis in class Signalpublic void buildBussedSignalList()
public java.util.List<DigitalSignal> getBussedSignals()
public void clearBussedSignalList()
public void addToBussedSignalList(DigitalSignal ws)
ws - a single-wire signal to be added to this bus signal.public boolean isInBus()
public void buildTime(int numEvents)
numEvents - the number of events on this TimedSignal (the length of the time array).public double getTime(int index)
index - the event being querried (0-based).
public double[] getTimeVector()
public void setTimeVector(double[] time)
time - a new time vector for this TimedSignal.
public void setTime(int entry,
double t)
entry - the entry in the event array of this TimedSignal (0-based).t - the new value of time at this event.public void buildState(int numEvents)
numEvents - the number of events in this signal.
public void setState(int index,
int st)
index - the event index (0-based).st - the state of the signal at that event.public int getState(int index)
index - the event index (0-based).
public int[] getStateVector()
public void setStateVector(int[] state)
state - an array of state information for every event on this signal.public int getNumEvents()
protected void calcBounds()
calcBounds in class Signal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||