public abstract class NumericProbeBase extends Probe implements Displayable
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Constructor and Description |
---|
NumericProbeBase() |
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(double t)
Called when the probe is being applied to a model
|
void |
applyDefaultDisplayRanges() |
java.lang.Object |
clone() |
void |
createNumericList(int vsize) |
void |
decreaseDisplayRanges()
Decrease the display range of each numeric probe panel.
|
void |
dispose()
Remove resources used by this agent.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Property[] |
getAttachedProperties() |
VectorNd |
getData(double sec) |
double |
getDefaultDisplayMax() |
double |
getDefaultDisplayMin() |
double[] |
getDefaultDisplayRange() |
javax.swing.JPanel |
getDisplay(int w,
int h,
boolean isLargeDisplay) |
NumericProbeDriver[] |
getDrivers() |
java.lang.String |
getFormat() |
Interpolation |
getInterpolation()
Returns the interpolation method for this numeric input probe.
|
Interpolation.Order |
getInterpolationOrder()
Returns the interpolation order for this numeric probe.
|
LegendDisplay |
getLegend() |
java.lang.String |
getMatlabName() |
double[] |
getMinMaxValues() |
NumericList |
getNumericList() |
int |
getOrderedTraceIndex(int order) |
PlotTraceInfo |
getPlotTraceInfo(int idx) |
double[] |
getRange() |
void |
getRangeHints(double[] ranges)
Gets the range hints associated with this displayable object.
|
java.awt.Color |
getTraceColor(int idx) |
java.lang.String |
getTraceLabel(int idx) |
double[][] |
getValues()
Returns the values of this probe as a two dimensional array of
doubles.
|
java.util.LinkedHashMap<java.lang.String,NumericProbeVariable> |
getVariables() |
int |
getVsize() |
void |
increaseDisplayRanges()
Increase the display range of each numeric probe panel.
|
boolean |
isCloneable() |
boolean |
isEmpty() |
boolean |
isPrintable() |
boolean |
isSmallDisplayVisible() |
boolean |
isTraceVisible(int idx) |
static boolean |
isValidVariableName(java.lang.String name) |
boolean |
loadFromMatlab(MatlabInterface mi,
java.lang.String matlabName) |
void |
print(double sec) |
boolean |
removeDisplay(javax.swing.JPanel display) |
void |
removeLegend() |
void |
resetTraceColors() |
void |
resetTraceOrder() |
void |
saveToMatlab(MatlabInterface mi,
java.lang.String matlabName) |
void |
scaleNumericList(double scale)
Scales the values of a numberic probe.
|
void |
setDefaultDisplayRange(double[] minmax) |
void |
setDefaultDisplayRange(double min,
double max) |
void |
setFormat(java.lang.String fmtStr) |
void |
setInterpolation(Interpolation method)
Sets the interpolation method for this numeric input probe.
|
void |
setInterpolationOrder(Interpolation.Order order)
Sets the interpolation order for this numeric probe.
|
void |
setLegendLabels(java.util.ArrayList<java.lang.String> labels) |
void |
setRangeHints(double[] ranges)
Sets the range hints associated with this displayable object.
|
void |
setScale(double s) |
void |
setSmallDisplayVisible(boolean visible) |
void |
setTraceColor(int idx,
java.awt.Color color) |
void |
setTraceLabel(int idx,
java.lang.String label) |
void |
setTraceOrder(int[] indices)
Sets a new ordering for the plot traces.
|
void |
setTraceVisible(int idx,
boolean visible) |
void |
setValues(double[][] vals)
Sets the values of this numeric probe from a two dimensional array of
doubles.
|
void |
swapPlotTraceOrder(PlotTraceInfo pti0,
PlotTraceInfo pti1) |
void |
updateDisplays() |
void |
updateDisplays(NumericProbePanel notToUpdate) |
void |
updateDisplaysForPropertyChanges()
Update displays if associated properties (like interpolation) have
changed.
|
void |
updateDisplaysWithoutAutoRanging()
Update displays with auto-ranging suppressed.
|
createState, getAttachedFile, getAttachedFileName, getChildren, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getInitialState, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, isAttachedFileRelative, isEventTime, isInput, isScalable, isSettable, load, nextEventTime, save, scan, setAttachedFileName, setData, setInterval, setName, setScalable, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval
finalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, write
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, setFixed, setMarked, setNumber, setParent, setSelected, updateReferences
isWritable
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class Probe
public double[][] getValues()
public void setValues(double[][] vals)
getValues()
.vals
- Values used to set this numeric probepublic abstract void apply(double t)
Probe
public javax.swing.JPanel getDisplay(int w, int h, boolean isLargeDisplay)
getDisplay
in interface Displayable
public boolean removeDisplay(javax.swing.JPanel display)
removeDisplay
in interface Displayable
public int getVsize()
public void createNumericList(int vsize)
public void updateDisplays()
updateDisplays
in interface Displayable
public void setSmallDisplayVisible(boolean visible)
public boolean isSmallDisplayVisible()
public void updateDisplays(NumericProbePanel notToUpdate)
public void updateDisplaysForPropertyChanges()
public void updateDisplaysWithoutAutoRanging()
public void setInterpolation(Interpolation method)
method
- interpolation method.public Interpolation getInterpolation()
setInterpolation(maspack.interpolation.Interpolation)
public void setInterpolationOrder(Interpolation.Order order)
order
- new interpolation orderpublic Interpolation.Order getInterpolationOrder()
public void setFormat(java.lang.String fmtStr)
public java.lang.String getFormat()
public boolean isCloneable()
isCloneable
in class Probe
public double getDefaultDisplayMax()
public double getDefaultDisplayMin()
public void setDefaultDisplayRange(double min, double max)
public void setDefaultDisplayRange(double[] minmax)
public void increaseDisplayRanges()
public void decreaseDisplayRanges()
public void applyDefaultDisplayRanges()
public double[] getDefaultDisplayRange()
public double[] getMinMaxValues()
public boolean isEmpty()
public double[] getRange()
public void setRangeHints(double[] ranges)
Displayable
setRangeHints
in interface Displayable
ranges
- range hints. The first and second elements are the minimum and maximum
horizontal values, and the third and fourth elements are the minimun and
maximum vertical values.Displayable.getRangeHints(double[])
public void getRangeHints(double[] ranges)
Displayable
getRangeHints
in interface Displayable
ranges
- range hints. The first and second elements are the minimum and maximum
horizontal values, and the third and fourth elements are the minimun and
maximum vertical values.Displayable.setRangeHints(double[])
public void scaleNumericList(double scale)
scale
- the parameter by which to scale the values.public NumericList getNumericList()
public java.util.LinkedHashMap<java.lang.String,NumericProbeVariable> getVariables()
public NumericProbeDriver[] getDrivers()
public Property[] getAttachedProperties()
public static boolean isValidVariableName(java.lang.String name)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ModelComponentBase
java.lang.CloneNotSupportedException
public boolean isPrintable()
isPrintable
in class Probe
public VectorNd getData(double sec)
public void setLegendLabels(java.util.ArrayList<java.lang.String> labels)
public PlotTraceInfo getPlotTraceInfo(int idx)
public int getOrderedTraceIndex(int order)
public void setTraceOrder(int[] indices)
public void swapPlotTraceOrder(PlotTraceInfo pti0, PlotTraceInfo pti1)
public void resetTraceOrder()
public void setTraceVisible(int idx, boolean visible)
public boolean isTraceVisible(int idx)
public void setTraceColor(int idx, java.awt.Color color)
public java.awt.Color getTraceColor(int idx)
public void resetTraceColors()
public void setTraceLabel(int idx, java.lang.String label)
public java.lang.String getTraceLabel(int idx)
public LegendDisplay getLegend()
public void removeLegend()
public void dispose()
dispose
in interface ModelAgent
dispose
in class ModelAgentBase
public java.lang.String getMatlabName()
public void saveToMatlab(MatlabInterface mi, java.lang.String matlabName) throws MatlabInterfaceException
MatlabInterfaceException
public boolean loadFromMatlab(MatlabInterface mi, java.lang.String matlabName) throws MatlabInterfaceException
MatlabInterfaceException