public class NumericDifferenceProbe extends NumericMonitorProbe
Probe.ExportProps, Probe.ImportExportFileInfo
ModelComponent.NavpanelVisibility
myProps
EXPLICIT_TIME, mySmallDisplay
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
COPY_REFERENCES, REST_POSITION
Constructor and Description |
---|
NumericDifferenceProbe() |
NumericDifferenceProbe(NumericProbeBase probe0,
NumericProbeBase probe1,
double interval) |
NumericDifferenceProbe(NumericProbeBase probe0,
NumericProbeBase probe1,
java.lang.String fileName,
double startTime,
double stopTime,
double interval) |
Modifier and Type | Method and Description |
---|---|
void |
generateData(VectorNd vec,
double t,
double trel)
Generates data for this probe by evaluating a vectored-valued function of
time and storing the result in
vec . |
void |
setProbes(NumericProbeBase probe0,
NumericProbeBase probe1) |
apply, copy, getAllPropertyInfo, getCopyReferences, getOutput, getShowHeader, getShowTime, save, scan, scanItem, setAttachedFileName, setAttachedFileName, setShowHeader, setShowTime, setVsize, setVsize, write, writeData, writeItems
clone, createState, getDataFunction, getInitialState, getState, hasState, isCloneable, isDuplicatable, setDataFunction, setState
addData, applyDefaultDisplayRanges, clearData, createNumericList, decreaseDisplayRanges, dispose, export, getAttachedProperties, getData, getDefaultDisplayMax, getDefaultDisplayMin, getDefaultDisplayRange, getDisplay, getDrivers, getExportFileInfo, getExportProps, getFormat, getInterpolation, getInterpolationOrder, getLegend, getMatlabName, getMinMaxValues, getNumericList, getOrderedTraceIndex, getPlotTraceInfo, getRange, getRange, getTraceColor, getTraceLabel, getTraceManager, getValues, getVariables, getVsize, importData, importText, increaseDisplayRanges, isDisplayable, isEmpty, isPrintable, isSmallDisplayVisible, isTraceVisible, isValidVariableName, isWritable, loadFromMatlab, print, read, removeDisplay, removeLegend, resetTraceColors, resetTraceOrder, saveToMatlab, scaleNumericList, setDefaultDisplayRange, setDefaultDisplayRange, setFormat, setInterpolation, setInterpolationOrder, setLegend, setLegendLabels, setScale, setSmallDisplayVisible, setTraceColor, setTraceLabel, setTraceOrder, setTraceVisible, setValues, smoothWithMovingAverage, smoothWithSavitzkyGolay, swapPlotTraceOrder, updateDisplays, updateDisplays, updateDisplaysForPropertyChanges, updateDisplaysWithoutAutoRanging, writeText
getAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileName, getFileFromPath, getImportFile, getImportFileInfo, getImportFileName, getPathFromFile, getProperty, getScale, getStartTime, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, isAttachedFileRelative, isEventTime, isInput, isScalable, isSettable, load, nextEventTime, setAttachedFileName, setData, setExportFileName, setImportFileName, setInterval, setName, setScalable, setStartStopTimes, setStartTime, setStopTime, setTrack, setUpdateInterval
finalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, write
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isScanning, isSelected, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public NumericDifferenceProbe()
public NumericDifferenceProbe(NumericProbeBase probe0, NumericProbeBase probe1, double interval)
public NumericDifferenceProbe(NumericProbeBase probe0, NumericProbeBase probe1, java.lang.String fileName, double startTime, double stopTime, double interval)
public void setProbes(NumericProbeBase probe0, NumericProbeBase probe1)
public void generateData(VectorNd vec, double t, double trel)
NumericMonitorProbe
vec
. The size of
vec
will equal the vector size of the probe (as returned by
NumericProbeBase.getVsize()
. The function may generate the data using either
absolute time t
or relative time trel
, where
relative time is determined from the probe's start time and scale factor
using trel = (t - startTime)/scale
generateData
in class NumericMonitorProbe
vec
- returns the generated data.t
- absolute time (seconds)trel
- probe relative time