public abstract class ConstrainerBase extends RenderableComponentBase implements Constrainer, HasAuxState
HasAuxState.StateContextModelComponent.NavpanelVisibilityenforceUniqueCompositeNames, enforceUniqueNames, myNumber, myProps, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
ConstrainerBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
addBilateralConstraints(SparseBlockMatrix GT,
VectorNd dg,
int numb) |
int |
addFrictionConstraints(SparseBlockMatrix DT,
MechSystem.FrictionInfo[] finfo,
int idx) |
int |
addUnilateralConstraints(SparseBlockMatrix NT,
VectorNd dn,
int numu) |
void |
advanceAuxState(double t0,
double t1)
Called at the very beginning of the time step (in the system's
preadvance() method) to perform any required updating of the component's
state before the application in input probes or controllers.
|
void |
getAuxState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
abstract int |
getBilateralImpulses(VectorNd lam,
int idx) |
abstract int |
getBilateralInfo(MechSystem.ConstraintInfo[] ginfo,
int idx) |
abstract void |
getBilateralSizes(VectorNi sizes) |
abstract void |
getConstrainedComponents(java.util.List<DynamicComponent> list) |
void |
getInitialAuxState(DataBuffer newData,
DataBuffer oldData)
Saves initial state information data for this component by adding data
to the supplied data buffer.
|
int |
getUnilateralImpulses(VectorNd the,
int idx) |
int |
getUnilateralInfo(MechSystem.ConstraintInfo[] ninfo,
int idx) |
void |
getUnilateralSizes(VectorNi sizes) |
boolean |
hasState()
Queries if this component has state.
|
int |
maxFrictionConstraintSets() |
void |
setAuxState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
abstract int |
setBilateralImpulses(VectorNd lam,
double h,
int idx) |
int |
setUnilateralImpulses(VectorNd the,
double h,
int idx) |
void |
skipAuxState(DataBuffer data)
Skips over the state information for this component contained
in the supplied data buffer, starting at the current buffer offsets.
|
abstract double |
updateConstraints(double t,
int flags) |
abstract void |
zeroImpulses() |
copy, createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, render, setRenderProps, updateBounds, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getAllPropertyInfo, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferencesgetAllPropertyInfo, getPropertygetChildren, hasChildrenisWritable, writepublic abstract void getBilateralSizes(VectorNi sizes)
getBilateralSizes in interface Constrainerpublic abstract int addBilateralConstraints(SparseBlockMatrix GT, VectorNd dg, int numb)
addBilateralConstraints in interface Constrainerpublic abstract int getBilateralInfo(MechSystem.ConstraintInfo[] ginfo, int idx)
getBilateralInfo in interface Constrainerpublic abstract int setBilateralImpulses(VectorNd lam, double h, int idx)
setBilateralImpulses in interface Constrainerpublic abstract int getBilateralImpulses(VectorNd lam, int idx)
getBilateralImpulses in interface Constrainerpublic abstract void zeroImpulses()
zeroImpulses in interface Constrainerpublic void getUnilateralSizes(VectorNi sizes)
getUnilateralSizes in interface Constrainerpublic int addUnilateralConstraints(SparseBlockMatrix NT, VectorNd dn, int numu)
addUnilateralConstraints in interface Constrainerpublic int getUnilateralInfo(MechSystem.ConstraintInfo[] ninfo, int idx)
getUnilateralInfo in interface Constrainerpublic int setUnilateralImpulses(VectorNd the, double h, int idx)
setUnilateralImpulses in interface Constrainerpublic int getUnilateralImpulses(VectorNd the, int idx)
getUnilateralImpulses in interface Constrainerpublic int maxFrictionConstraintSets()
maxFrictionConstraintSets in interface Constrainerpublic int addFrictionConstraints(SparseBlockMatrix DT, MechSystem.FrictionInfo[] finfo, int idx)
addFrictionConstraints in interface Constrainerpublic abstract double updateConstraints(double t,
int flags)
updateConstraints in interface Constrainerpublic abstract void getConstrainedComponents(java.util.List<DynamicComponent> list)
getConstrainedComponents in interface Constrainerpublic void advanceAuxState(double t0,
double t1)
HasAuxStateadvanceAuxState in interface HasAuxStatet0 - beginning time associated with the time step advancet1 - end time associated with the time step advancepublic void skipAuxState(DataBuffer data)
skipAuxState in interface HasAuxStatedata - buffer containing the state informationpublic void getAuxState(DataBuffer data)
HasAuxStategetAuxState in interface HasAuxStatedata - buffer for storing the state values.public void getInitialAuxState(DataBuffer newData, DataBuffer oldData)
HasAuxStateIf oldData is non-null, then this contains
previously stored initial state information (starting at its current
buffer offsets), which should be stored into
newData in place of the current component state data.
This may only be partially possible if the component's state structure
has changed since oldData was written.
getInitialAuxState in interface HasAuxStatenewData - buffer for storing the state values.oldData - if non-null, contains old state information that should be
written into newData in place of the current state
information.public void setAuxState(DataBuffer data)
HasAuxStatesetAuxState in interface HasAuxStatedata - buffer containing the state informationpublic boolean hasState()
hasState in interface ModelComponenthasState in class ModelComponentBasetrue if this component has state