public abstract class ParticleConstraintBase extends ConstrainerBase implements ScalableUnits
HasAuxState.StateContextModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
ParticleConstraintBase() |
| Modifier and Type | Method and Description |
|---|---|
int |
addBilateralConstraints(SparseBlockMatrix GT,
VectorNd dg,
int numb) |
void |
addParticle(Particle p) |
void |
addParticles(java.util.Collection<? extends Particle> parts) |
int |
addUnilateralConstraints(SparseBlockMatrix NT,
VectorNd dg,
int numu) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
void |
getAuxState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
int |
getBilateralImpulses(VectorNd lam,
int idx) |
int |
getBilateralInfo(MechSystem.ConstraintInfo[] ginfo,
int idx) |
void |
getBilateralSizes(VectorNi sizes) |
double |
getCompliance() |
void |
getConstrainedComponents(java.util.List<DynamicComponent> list) |
double |
getDamping() |
void |
getInitialAuxState(DataBuffer newData,
DataBuffer oldData)
Saves initial state information data for this component by adding data
to the supplied data buffer.
|
Particle |
getParticle(int idx) |
double |
getPenetrationTol() |
void |
getSoftReferences(java.util.List<ModelComponent> refs)
Appends all soft references for this component to a list.
|
int |
getUnilateralImpulses(VectorNd the,
int idx) |
int |
getUnilateralInfo(MechSystem.ConstraintInfo[] ninfo,
int idx) |
void |
getUnilateralSizes(VectorNi sizes) |
boolean |
isEngaged(int idx) |
boolean |
isUnilateral() |
int |
numParticles() |
boolean |
removeParticle(Particle p) |
void |
setAuxState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
int |
setBilateralImpulses(VectorNd lam,
double h,
int idx) |
void |
setCompliance(double c) |
void |
setDamping(double d) |
void |
setPenetrationTol(double tol) |
void |
setUnilateral(boolean unilateral) |
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.
|
void |
updateReferences(boolean undo,
java.util.Deque<java.lang.Object> undoInfo)
May be called by the system if any of the soft references for
this component are removed from the the component hierarchy.
|
void |
zeroImpulses() |
addFrictionConstraints, advanceAuxState, hasState, maxFrictionConstraintSets, updateConstraintscopy, createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, render, setRenderProps, updateBounds, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscaleDistance, scaleMassconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelectedgetPropertygetChildren, hasChildrenisWritable, writepublic static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic double getDamping()
public void setDamping(double d)
public double getCompliance()
public void setCompliance(double c)
public double getPenetrationTol()
public void setPenetrationTol(double tol)
public boolean isUnilateral()
public void setUnilateral(boolean unilateral)
public void addParticle(Particle p)
public void addParticles(java.util.Collection<? extends Particle> parts)
public Particle getParticle(int idx)
public int numParticles()
public boolean removeParticle(Particle p)
public void getBilateralSizes(VectorNi sizes)
getBilateralSizes in interface ConstrainergetBilateralSizes in class ConstrainerBasepublic int addBilateralConstraints(SparseBlockMatrix GT, VectorNd dg, int numb)
addBilateralConstraints in interface ConstraineraddBilateralConstraints in class ConstrainerBasepublic int getBilateralInfo(MechSystem.ConstraintInfo[] ginfo, int idx)
getBilateralInfo in interface ConstrainergetBilateralInfo in class ConstrainerBasepublic int setBilateralImpulses(VectorNd lam, double h, int idx)
setBilateralImpulses in interface ConstrainersetBilateralImpulses in class ConstrainerBasepublic int getBilateralImpulses(VectorNd lam, int idx)
getBilateralImpulses in interface ConstrainergetBilateralImpulses in class ConstrainerBasepublic void getUnilateralSizes(VectorNi sizes)
getUnilateralSizes in interface ConstrainergetUnilateralSizes in class ConstrainerBasepublic int addUnilateralConstraints(SparseBlockMatrix NT, VectorNd dg, int numu)
addUnilateralConstraints in interface ConstraineraddUnilateralConstraints in class ConstrainerBasepublic int getUnilateralInfo(MechSystem.ConstraintInfo[] ninfo, int idx)
getUnilateralInfo in interface ConstrainergetUnilateralInfo in class ConstrainerBasepublic int setUnilateralImpulses(VectorNd the, double h, int idx)
setUnilateralImpulses in interface ConstrainersetUnilateralImpulses in class ConstrainerBasepublic int getUnilateralImpulses(VectorNd the, int idx)
getUnilateralImpulses in interface ConstrainergetUnilateralImpulses in class ConstrainerBasepublic void zeroImpulses()
zeroImpulses in interface ConstrainerzeroImpulses in class ConstrainerBasepublic boolean isEngaged(int idx)
public void getConstrainedComponents(java.util.List<DynamicComponent> list)
getConstrainedComponents in interface ConstrainergetConstrainedComponents in class ConstrainerBasepublic void getSoftReferences(java.util.List<ModelComponent> refs)
ModelComponentBaseupdateReferences() method will
be called to update its internal reference information.getSoftReferences in interface ModelComponentgetSoftReferences in class ModelComponentBaserefs - list to which soft references are appendedpublic void updateReferences(boolean undo,
java.util.Deque<java.lang.Object> undoInfo)
ModelComponentBaseundo equal to false,
this component should then examine its soft references and
use ComponentUtils.isConnected()
to determine which of them have been disconnected from the hierarchy.
Disconnected references should be removed, and sufficient information
should be appended to undoInfo to allow this update
to be undone if this method is called later with undo
equal to true. When undoing an update, the undo
information should be removed from the front of undoInfo.updateReferences in interface ModelComponentupdateReferences in class ModelComponentBaseundo - if true, indicates that the most
recent reference update should be undone, using the supplied
undo information.undoInfo - if undo is false, should be used
to store information allowing the reference update to be undone.
Otherwise, if undo is true, then this
supplied information to undo the most recent update.public void skipAuxState(DataBuffer data)
skipAuxState in interface HasAuxStateskipAuxState in class ConstrainerBasedata - buffer containing the state informationpublic void getAuxState(DataBuffer data)
HasAuxStategetAuxState in interface HasAuxStategetAuxState in class ConstrainerBasedata - 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 HasAuxStategetInitialAuxState in class ConstrainerBasenewData - 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 HasAuxStatesetAuxState in class ConstrainerBasedata - buffer containing the state information