public abstract class Signal
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
bounds
the range of values in the X and Y axes
|
protected double |
leftEdge
the left and right X values
|
protected double |
rightEdge
the left and right X values
|
Constructor and Description |
---|
Signal() |
Modifier and Type | Method and Description |
---|---|
void |
addControlPoint(double time)
Method to add a new control point to the list on this signal.
|
protected void |
calcBounds() |
void |
clearControlPoints()
Method to clear the list of control points associated with this signal.
|
void |
finished() |
abstract Analysis |
getAnalysis()
Method to return the Analysis in which this signal resides.
|
java.awt.geom.Rectangle2D |
getBounds()
Method to compute the time and value bounds of this simulation signal.
|
java.lang.Double[] |
getControlPoints()
Method to return a list of control points associated with this signal.
|
java.lang.String |
getFullName()
Method to return the full name of this simulation signal.
|
double |
getLeftEdge()
Method to return the leftmost X coordinate of this simulation signal.
|
double |
getRightEdge()
Method to return the rightmost X coordinate of this simulation signal.
|
java.lang.String |
getSignalContext()
Method to return the context of this simulation signal.
|
java.lang.String |
getSignalName()
Method to return the name of this simulation signal.
|
void |
removeControlPoint(double time)
Method to remove control points the list on this signal.
|
void |
setSignalContext(java.lang.String signalContext)
Method to return the context of this simulation signal.
|
void |
setSignalName(java.lang.String signalName,
java.lang.String signalContext)
Method to set the name and context of this simulation signal.
|
protected java.awt.geom.Rectangle2D bounds
protected double leftEdge
protected double rightEdge
public void finished()
public abstract Analysis getAnalysis()
public void setSignalName(java.lang.String signalName, java.lang.String signalContext)
signalName
- the name of this simulation signal.signalContext
- the context of this simulation signal.public java.lang.String getSignalName()
public void setSignalContext(java.lang.String signalContext)
signalContext
- the context of this simulation signal.public java.lang.String getSignalContext()
public java.lang.String getFullName()
public java.lang.Double[] getControlPoints()
public void clearControlPoints()
public void addControlPoint(double time)
time
- the time of the new control point.public void removeControlPoint(double time)
time
- the time of the control point to delete.public java.awt.geom.Rectangle2D getBounds()
public double getLeftEdge()
public double getRightEdge()
protected void calcBounds()