public class FixedBallContact extends RootModel
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibilityCompositeComponent.NavpanelDisplayDEFAULT_MODEL_TITLE, myProps, testSaveAndRestoreStateDEFAULT_MAX_STEP_SIZEDEFAULT_NAVPANEL_DISPLAYenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONALSTATE_IS_VOLATILE| Constructor and Description |
|---|
FixedBallContact() |
| Modifier and Type | Method and Description |
|---|---|
StepAdjustment |
advance(double t0,
double t1,
int flags)
Override of the advance method that attachs FEM nodes to the plate
when the make contact with it.
|
void |
build(java.lang.String[] args)
Overridden by applications to populate the model with the necessary
simulation components (particles, rigid bodies, FE models, force
effectors, constrainers, etc., usually contained under one or more
MechModels) and instrumentation components (probes, controllers,
monitors, and control panels). |
CompositeState |
createState(ComponentState prevState)
Override the root model state to be a composite state consisting of two
sub-states: (1) the underlying root model state, and (2) a NumericState
containing information about which FEM nodes are attached to the plate.
|
void |
getInitialState(ComponentState state,
ComponentState prevstate)
Override the root model's getInitialState() method to get both the
initial root state and the initial attachment state (which has zero
attachments).
|
void |
getState(ComponentState state)
Override the root model's getState() method to get both the root state
and the current attachment state.
|
void |
setState(ComponentState state)
Override the root model's setState() method to set both the root state
and restore node attachments as per the attachment state.
|
addBreakPoint, addComponentChangeListener, addController, addController, addControlPanel, addControlPanel, addInputProbe, addInputProbe, addModel, addMonitor, addMonitor, addOutputProbe, addOutputProbe, addRenderable, addRenderable, addTracingProbe, addWayPoint, addWayPoint, applyControllers, applyInputProbes, applyMonitors, applyOutputProbes, attach, checkWrite, clear, clearRenderables, clearTraces, clearTracing, componentChanged, detach, disableAllTracing, disableTracing, dispose, enableTracing, findSourceDir, getAbout, getAdaptiveStepping, getAllPropertyInfo, getControllers, getControlPanels, getControlPanelTabs, getDefaultViewOrientation, getInputProbes, getMainFrame, getMainViewer, getMinStepSize, getModelTitle, getMonitors, getNextAdvanceTime, getNumTraceables, getOutputProbes, getRoot, getSourceRelativePath, getStartTime, getState, getStopRequest, getTaskManager, getTestSaveRestoreState, getTraceSet, getTracingProbe, getTracingProbes, getViewerCenter, getViewerEye, getViewerUp, getWayPoint, getWayPointChecking, getWayPoints, getWorkingFolder, hasRoot, hasState, hasTracingProbes, initialize, invalidateInitialState, isBaseProperty, isCheckEnabled, isFocusable, isTracing, loadControlPanel, mergeAllControlPanels, mergeControlPanel, models, notifyParentOfChange, notifyStructureChanged, postscan, postscanInitialize, prerender, removeAllControllers, removeAllControlPanels, removeAllInputProbes, removeAllModels, removeAllMonitors, removeAllOutputProbes, removeAllWayPoints, removeComponentChangeListener, removeController, removeControlPanel, removeInputProbe, removeModel, removeMonitor, removeOutputProbe, removeRenderable, removeRenderable, removeWayPoint, render, renderables, rerender, resetInitialState, scan, scanProbes, setAdaptiveStepping, setCheckEnabled, setDefaultValues, setDefaultViewOrientation, setDefaultViewOrientation, setFocusable, setMainViewer, setMaxStepSize, setMinStepSize, setModelTitle, setStartTime, setStopRequest, setTaskManager, setTestSaveRestoreState, setTracingProbesVisible, setViewerCenter, setViewerEye, setViewerUp, setWayPointChecking, setWorkingFolder, stopAdvance, updateBounds, writecreateRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderPropsactionPerformed, copy, getDefaultMaxStepSize, getMaxStepSize, getMenuItems, hasParameterizedType, hierarchyContainsReferences, preadvance, setDefaultMaxStepSizeadd, add, addAll, addComponents, addFixed, addFixed, addNumbered, clone, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getMinNumber, getNavpanelDisplay, getNumberLimit, getOneBasedNumbering, getParameterType, getShortName, hasChildren, incrementNumbering, indexOf, invalidateNumbers, isEditable, isEmpty, iterator, nextComponentNumber, numComponents, remove, remove, removeAll, removeAll, removeComponents, reorderComponents, resetNumbersToIndices, retainAll, set, setEditable, setNavpanelDisplay, setNumbered, setOneBasedNumbering, setShortName, size, toArray, toArray, updateNameMapcheckFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writegetNameequals, hashCode, parallelStream, removeIf, spliterator, streamrecursivelyFindpublic void build(java.lang.String[] args)
RootModelMechModels) and instrumentation components (probes, controllers,
monitors, and control panels). The build() method is called only
when ArtiSynth loads the application directly from the class. It is
not called when the application is loaded from a .art
file.public CompositeState createState(ComponentState prevState)
The attachment state consists of:
an integer giving the number of attachments
for each attachment,the index of the node, and its plate relative location
createState in interface HasStatecreateState in class RootModelprevState - If non-null, supplies a previous state that
was created by this component and which can be used to provide
pre-sizing hints.public void getInitialState(ComponentState state, ComponentState prevstate)
getInitialState in interface HasStategetInitialState in class RootModelstate - receives the state informationprevstate - previous state information; may be null.public void getState(ComponentState state)
public void setState(ComponentState state)
public StepAdjustment advance(double t0, double t1, int flags)