public class ExactMomentProbe 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 |
---|
ExactMomentProbe(Frame frame,
MultiPointSpring spring,
ExactWrappedSpring exactSpring,
java.lang.String fileName,
double startTime,
double stopTime,
double interval) |
Modifier and Type | Method and Description |
---|---|
void |
apply(double t)
Called at time
t to apply this probe |
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 . |
Wrench |
getExactMoment() |
Wrench |
getWrapForce() |
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 ExactMomentProbe(Frame frame, MultiPointSpring spring, ExactWrappedSpring exactSpring, java.lang.String fileName, double startTime, double stopTime, double interval)
public Wrench getExactMoment()
public Wrench getWrapForce()
public void apply(double t)
Probe
t
to apply this probeapply
in class NumericMonitorProbe
t
- time at which probe is being appliedpublic 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