public class FrameSpring extends Spring implements RenderableComponent, ScalableUnits, TransformableGeometry, CopyableComponent, ForceTargetComponent, HasNumericState
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
static boolean |
mySymmetricJacobian |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONALTG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATINGCOPY_REFERENCES, REST_POSITION| Constructor and Description |
|---|
FrameSpring() |
FrameSpring(java.lang.String name) |
FrameSpring(java.lang.String name,
double k,
double kRot,
double d,
double dRot) |
FrameSpring(java.lang.String name,
FrameMaterial mat) |
| Modifier and Type | Method and Description |
|---|---|
int |
addForcePosJacobian(SparseBlockMatrix J,
double h,
boolean staticOnly,
int bi)
Add a row to the force Jacobian for this force target component.
|
int |
addForceVelJacobian(SparseBlockMatrix J,
double h,
int bi) |
void |
addPosJacobian(SparseNumberedBlockMatrix M,
double s)
Scales the components of the position Jacobian associated with this force
effector and adds it to the supplied solve matrix M.
|
void |
addPosJacobianWorld(SparseNumberedBlockMatrix M,
double s) |
void |
addSolveBlocks(SparseNumberedBlockMatrix M)
Adds any needed blocks to a solve matrix in order to accomodate the
Jacobian terms associated with this force effector.
|
void |
addTransformableDependencies(TransformGeometryContext context,
int flags)
Adds to
context any transformable components which should be
transformed as the same time as this component. |
void |
addVelJacobian(SparseNumberedBlockMatrix M,
double s)
Scales the components of the velocity Jacobian associated with this force
effector and adds it to the supplied solve matrix M.
|
void |
addVelJacobianWorld(SparseNumberedBlockMatrix M,
double s) |
void |
advanceState(double t0,
double t1)
If
HasNumericState.requiresAdvance() and HasNumericState.hasState() both return true, then this method is called each time step by the system integrator
to update this component's state. |
void |
applyForces(double t)
Adds forces to the components affected by this force effector at a
particular time.
|
void |
computeVelJacobianWorld(FrameMaterial mat,
double sd,
Matrix6d blk00,
Matrix6d blk01,
Matrix6d blk10,
Matrix6d blk11) |
ModelComponent |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap)
Create a copy of this component.
|
static FrameMaterial |
createDefaultMaterial() |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getApplyRestPose()
Queries whether or not this spring automatically applies the
rest pose.
|
RigidTransform3d |
getAttachFrameA() |
RigidTransform3d |
getAttachFrameB() |
int |
getAuxVarDerivative(double[] buf,
int idx)
If this component has auxiliary variables, returns the current values of
their derivatives in
buf, starting at the location idx. |
int |
getAuxVarState(double[] buf,
int idx)
If this component has auxiliary variables, returns their values in
buf, starting at the location idx. |
double |
getAxisLength() |
boolean |
getCopyReferences(java.util.List<ModelComponent> refs,
ModelComponent ancestor)
Collects external references which must also be copied in order to
duplicate this component.
|
RigidTransform3d |
getCurrentTCW()
Returns the current pose of the C frame, in world coordinates.
|
void |
getCurrentTCW(RigidTransform3d TCW)
Returns the current pose of the C frame, in world coordinates.
|
RigidTransform3d |
getCurrentTDW()
Returns the current pose of the D frame, in world coordinates.
|
void |
getCurrentTDW(RigidTransform3d TDW)
Returns the current pose of the D frame, in world coordinates.
|
boolean |
getDrawFrameC() |
boolean |
getDrawFrameD() |
void |
getForce(VectorNd minf,
boolean staticOnly) |
int |
getForceSize() |
Frame |
getFrameA() |
Frame |
getFrameB() |
void |
getHardReferences(java.util.List<ModelComponent> refs)
Appends all hard references for this component to a list.
|
RigidTransform3d |
getInitialT21()
Deprecated.
Use
getRestPose() instead. |
int |
getJacobianType()
Returns a code indicating the matrix type that results when the Jacobian
terms of this force effector are added to the solve matrix.
|
FrameMaterial |
getMaterial() |
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable.
|
RenderProps |
getRenderProps()
Returns the render properities for this object.
|
RigidTransform3d |
getRestPose()
Returns the transform that defines the rest pose.
|
void |
getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
Append to
list the component (or components) associated with
the qid-th selection query issued by this component's render
method. |
Wrench |
getSpringForce() |
void |
getState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
int |
getStateVersion()
Returns a version number for this component's state.
|
RigidTransform3d |
getTDC0()
Deprecated.
Use
getRestPose() instead. |
boolean |
getUseTransformDC() |
boolean |
hasState()
Queries if this component has state.
|
void |
initializeRestPose()
Initializes the rest pose such that the current displacement between
frames D and C will generate no forces.
|
void |
initializeTDC0()
Deprecated.
Use
initializeRestPose() instead. |
boolean |
isDuplicatable()
Returns true if this component can be duplicated.
|
boolean |
isJacobianSymmetric() |
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
int |
numAuxVars()
Returns the number of auxiliary variables associated with this
component, or 0 if there are no auxiliary variables.
|
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection
queries within its
render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
boolean |
requiresAdvance()
Returns
true if the state of this component must be
updated each time step using HasNumericState.advanceState(double, double). |
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scaleMass(double s)
Scales all mass units.
|
void |
setApplyRestPose(boolean enable)
Sets whether or not this spring automatically applies the rest pose.
|
void |
setAttachFrameA(RigidTransform3d T1A) |
void |
setAttachFrameB(RigidTransform3d T2B) |
int |
setAuxVarState(double[] buf,
int idx)
If this component has auxiliary variables, sets them from the values in
buf, starting at the location idx. |
void |
setAxisLength(double len) |
void |
setDrawFrameC(boolean draw) |
void |
setDrawFrameD(boolean draw) |
void |
setFrameA(Frame frame) |
void |
setFrameB(Frame frame) |
void |
setFrames(Frame frameA,
Frame frameB,
RigidTransform3d TDW) |
void |
setFrames(Frame frameA,
RigidTransform3d T1A,
Frame frameB,
RigidTransform3d T2B) |
void |
setInitialT21()
Deprecated.
Use
initializeRestPose() instead. |
void |
setInitialT21(RigidTransform3d T21)
Deprecated.
Use
setRestPose(maspack.matrix.RigidTransform3d) instead. |
void |
setJacobianSymmetric(boolean symmetric) |
<T extends FrameMaterial> |
setMaterial(T mat) |
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object.
|
void |
setRestPose(RigidTransform3d TR)
Sets the value of the rest pose.
|
void |
setRotaryStiffness(double k) |
void |
setState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
void |
setTDC0(RigidTransform3d TDC0)
Deprecated.
Use
setRestPose(maspack.matrix.RigidTransform3d) instead. |
void |
setUseTransformDC(boolean enable) |
void |
transformGeometry(AffineTransform3dBase T)
Applies an affine transformation to the geometry of this component.
|
void |
transformGeometry(GeometryTransformer gtr,
TransformGeometryContext context,
int flags)
Transforms the geometry of this component, using the geometry transformer
gtr to transform its individual attributes. |
int |
transformPriority()
Returns an index used for ordering this component within a set of
components to which
transformGeometry() will be
applied. |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static boolean mySymmetricJacobian
public static PropertyList myProps
public FrameSpring()
public FrameSpring(java.lang.String name)
public FrameSpring(java.lang.String name,
double k,
double kRot,
double d,
double dRot)
public FrameSpring(java.lang.String name,
FrameMaterial mat)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic double getAxisLength()
public void setAxisLength(double len)
public boolean getDrawFrameD()
public void setDrawFrameD(boolean draw)
public void setDrawFrameC(boolean draw)
public boolean getDrawFrameC()
public void setUseTransformDC(boolean enable)
public boolean getUseTransformDC()
public void setApplyRestPose(boolean enable)
true, then any specified rest pose will be automaticallu removed
from the displacement frame passed to the spring's FrameMaterial. If false, then no modification will be made to
rhe displacement frame and the handling of the rest pose will be left to
the material. The value is currently false, but this will likely
be changed to true in the future.enable - if true, any rest pose will be automatically
appliedpublic boolean getApplyRestPose()
setApplyRestPose(boolean).true if this spring applies the rest posepublic void setInitialT21(RigidTransform3d T21)
setRestPose(maspack.matrix.RigidTransform3d) instead.public RigidTransform3d getInitialT21()
getRestPose() instead.public void setInitialT21()
initializeRestPose() instead.public void setTDC0(RigidTransform3d TDC0)
setRestPose(maspack.matrix.RigidTransform3d) instead.public RigidTransform3d getTDC0()
getRestPose() instead.public void initializeTDC0()
initializeRestPose() instead.public void setRestPose(RigidTransform3d TR)
If getUseTransformDC() returns true, the forces are
nominally generated by the transform TDC from frame D to C. If
the rest pose is not the identity, then forces are instead defined by the
transform from D to R, and the rest pose itself represents the transform
from R to C.
If getUseTransformDC() returns false, the forces are
nominally generated by the transform TCD from frame C to D. If
the rest pose is not the identity, then forces are instead defined by the
transform from C to R, and the rest pose itself represents the transform
from R to D.
TR - new rest pose valuepublic RigidTransform3d getRestPose()
setRestPose(maspack.matrix.RigidTransform3d) for more details.public void initializeRestPose()
getUseTransformDC() returns
true), or C to D (if getUseTransformDC() returns false). See setRestPose(maspack.matrix.RigidTransform3d).public RenderProps getRenderProps()
HasRenderPropsgetRenderProps in interface HasRenderPropspublic void setRenderProps(RenderProps props)
HasRenderPropsnull will remove render properties from this object.setRenderProps in interface HasRenderPropsprops - new render properties for this objectpublic RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropspublic void prerender(RenderList list)
IsRenderablelist.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderablelist - list of objects to be renderedpublic void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface IsRenderablepmin - minimum pointpmax - maximum pointpublic int getRenderHints()
IsRenderableTRANSPARENT and
TWO_DIMENSIONAL.getRenderHints in interface IsRenderablepublic boolean isSelectable()
IsSelectableisSelectable in interface IsSelectablepublic int numSelectionQueriesNeeded()
IsSelectablerender method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.numSelectionQueriesNeeded in interface IsSelectablepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerenderer - provides the functionality used to perform the rendering.flags - flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT and
Renderer.SORT_FACES.public void getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
IsSelectablelist the component (or components) associated with
the qid-th selection query issued by this component's render
method. This will only be called if this component manages its own
selection (i.e., the number nums returned by IsSelectable.numSelectionQueriesNeeded() is positive), and qid will in
turn be a number between 0 and nums-1.getSelection in interface IsSelectablelist - selected objects are appended to the end of this listqid - index of the selection querypublic static FrameMaterial createDefaultMaterial()
public FrameMaterial getMaterial()
public <T extends FrameMaterial> void setMaterial(T mat)
public void setRotaryStiffness(double k)
public void setFrameA(Frame frame)
public Frame getFrameA()
public void setFrameB(Frame frame)
public Frame getFrameB()
public void setAttachFrameA(RigidTransform3d T1A)
public RigidTransform3d getAttachFrameA()
public RigidTransform3d getCurrentTCW()
public void getCurrentTCW(RigidTransform3d TCW)
TCW - returns the current pose of Cpublic void setAttachFrameB(RigidTransform3d T2B)
public RigidTransform3d getAttachFrameB()
public RigidTransform3d getCurrentTDW()
public void getCurrentTDW(RigidTransform3d TDW)
TDW - returns the current pose of Dpublic void setFrames(Frame frameA, Frame frameB, RigidTransform3d TDW)
public void setFrames(Frame frameA, RigidTransform3d T1A, Frame frameB, RigidTransform3d T2B)
public Wrench getSpringForce()
public void applyForces(double t)
ForceEffectorapplyForces in interface ForceEffectorapplyForces in class Springt - time (seconds)public void addPosJacobian(SparseNumberedBlockMatrix M, double s)
ForceEffector
M is guaranteed to be the same matrix supplied in the most recent call to
addSolveBlocks, and so implementations may choose
to cache the relevant matrix blocks from that call, instead of retrieving
them directly from M.
addPosJacobian in interface ForceEffectorM - solve matrix to which scaled position Jacobian is to be addeds - scaling factor for position Jacobianpublic void addPosJacobianWorld(SparseNumberedBlockMatrix M, double s)
public void addVelJacobian(SparseNumberedBlockMatrix M, double s)
ForceEffector
M is guaranteed to be the same matrix supplied in the most recent call to
addSolveBlocks, and so implementations may choose
to cache the relevant matrix blocks from that call, instead of retrieving
them directly from M.
addVelJacobian in interface ForceEffectorM - solve matrix to which scaled velocity Jacobian is to be addeds - scaling factor for velocity Jacobianpublic void addVelJacobianWorld(SparseNumberedBlockMatrix M, double s)
public void computeVelJacobianWorld(FrameMaterial mat, double sd, Matrix6d blk00, Matrix6d blk01, Matrix6d blk10, Matrix6d blk11)
public void addSolveBlocks(SparseNumberedBlockMatrix M)
ForceEffectorgetSolveIndex) for all dynamic or attached components affected by this
force effector.addSolveBlocks in interface ForceEffectorM - solve matrix to which blocks should be addedpublic int getForceSize()
getForceSize in interface ForceTargetComponentpublic void getForce(VectorNd minf, boolean staticOnly)
getForce in interface ForceTargetComponentpublic int addForcePosJacobian(SparseBlockMatrix J, double h, boolean staticOnly, int bi)
ForceTargetComponentfm = J u
addForcePosJacobian in interface ForceTargetComponentJ - force Jacobianh - current time stepstaticOnly - use only static forcesbi - block row index for the row to be addedpublic int addForceVelJacobian(SparseBlockMatrix J, double h, int bi)
addForceVelJacobian in interface ForceTargetComponentpublic int transformPriority()
TransformableGeometrytransformGeometry() will be
applied. Components with higher values will be transformed before those
with lower values.transformPriority in interface TransformableGeometrypublic void transformGeometry(AffineTransform3dBase T)
TransformableGeometryTransformGeometryContext.transform (this, X, 0);
transformGeometry in interface TransformableGeometryT - affine transformation to apply to the componentpublic void addTransformableDependencies(TransformGeometryContext context, int flags)
TransformableGeometrycontext any transformable components which should be
transformed as the same time as this component. This will generally
include descendant components, and may also include other components to
which this component is connected in some way.
This method is generally called from with the
TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int) method of a
TransformGeometryContext.
addTransformableDependencies in interface TransformableGeometrycontext - context information, to which the dependent components
are added.flags - specifies conditions associated with the transformationpublic void transformGeometry(GeometryTransformer gtr, TransformGeometryContext context, int flags)
TransformableGeometrygtr to transform its individual attributes. The
context argument supplies information about what other
components are currently being transformed, and also allows the
requesting of update actions to be performed after all transform called
have completed. The context is also the usual entity that calls
this method, from within its TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int)
method. The argument flags provides flags to specify
various conditions associated with the the transformation.
At present, the available flags are TransformableGeometry.TG_SIMULATING and
TransformableGeometry.TG_ARTICULATED.
This method is not usually called directly by applications.
Instead, it is typically called from within the
TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int) method of the context,
which takes care of the various operations needed for a
complete transform operation, including calling
TransformableGeometry.addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext, int) to collect other
components that should be transformed, calling
TransformableGeometry.transformGeometry(maspack.matrix.AffineTransform3dBase) for each component, notifying
component parents that the geometry has changed, and calling
any requested TransformGeometryActions. More details
are given in the documentation for
TransformGeometryContext.apply(maspack.geometry.GeometryTransformer, int).
TransformGeometryContext provides a number of
static convenience transform methods
which take care of building the context and calling
apply() for a specified set of components.
This method should not
generally call transformGeometry() for its descendant
components. Instead, descendants needing transformation should be
specified by adding them to the context in the method TransformableGeometry.addTransformableDependencies(artisynth.core.modelbase.TransformGeometryContext, int).
transformGeometry in interface TransformableGeometrygtr - transformer implementing the transformcontext - context information, including what other components
are being transformedflags - specifies conditions associated with the transformationpublic void scaleDistance(double s)
ScalableUnitsscaleDistance in interface ScalableUnitss - scaling factorpublic void scaleMass(double s)
ScalableUnitsscaleMass in interface ScalableUnitss - scaling factorpublic void setJacobianSymmetric(boolean symmetric)
public boolean isJacobianSymmetric()
public int getJacobianType()
ForceEffectorMatrix.SYMMETRIC or Matrix.POSITIVE_DEFINITE. The former should be set if adding the Jacobian
terms preserves symmetry, and the latter should be set if positive
definiteness if preserved. Both should be set if there is no Jacobian for
this effector (i.e., the Jacobian methods are not implemented). Matrix
types from all the force effectors are logically and-ed together to
determine the type for the entire solve matrix.getJacobianType in interface ForceEffectorpublic void getHardReferences(java.util.List<ModelComponent> refs)
ModelComponentBasegetHardReferences in interface ModelComponentgetHardReferences in class ModelComponentBaserefs - list to which hard references are appendedpublic boolean isDuplicatable()
true if and only if CopyableComponent.getCopyReferences(java.util.List<artisynth.core.modelbase.ModelComponent>, artisynth.core.modelbase.ModelComponent) returns true.
This method is not currently used. It is intended to provide a faster
way of determining if a component can be duplicated, without having to
use CopyableComponent.getCopyReferences(java.util.List<artisynth.core.modelbase.ModelComponent>, artisynth.core.modelbase.ModelComponent) to build the list of copy references.
isDuplicatable in interface CopyableComponenttrue if this component can be duplicated.public boolean hasState()
hasState in interface HasNumericStatehasState in interface ModelComponenthasState in class ModelComponentBasetrue if this component has statepublic int getStateVersion()
getStateVersion in interface HasNumericStatepublic void getState(DataBuffer data)
getState in interface HasNumericStatedata - buffer for storing the state values.public void setState(DataBuffer data)
setState in interface HasNumericStatedata - buffer containing the state informationpublic boolean requiresAdvance()
true if the state of this component must be
updated each time step using HasNumericState.advanceState(double, double).requiresAdvance in interface HasNumericStatetrue if advanceState must be calledpublic void advanceState(double t0,
double t1)
HasNumericState.requiresAdvance() and HasNumericState.hasState() both return true, then this method is called each time step by the system integrator
to update this component's state. For single step integrators, the method
is called once at the start of the integration, with t0 and
t1 set to the step's start and end times. For multi-step
integrators (such as Runge Kutta), the method is called for each
sub-step, with t0 and t1 set to the sub-step's time
bounds. Multi-step integrators will also use HasNumericState.getState(maspack.util.DataBuffer) and
HasNumericState.setState(maspack.util.DataBuffer) to save and restore state as required.advanceState in interface HasNumericStatet0 - beginning time associated with the time step or sub-stept1 - end time associated with the time step or sub-steppublic int numAuxVars()
If HasNumericState.hasState() returns true and the component has
auxiliary variables, the variables are updated each time step by the
system integrator using explcit integration of the form
w += h dwdtwhere
h is a time increment, w is a vector of variables
accessed using HasNumericState.getAuxVarState(double[], int) and HasNumericState.setAuxVarState(double[], int), and
dwdt is a time derivative obtained using HasNumericState.getAuxVarDerivative(double[], int). For single step integrators, this will be done
once at the start of the integration, with h set to the time step
size. For multi-step integrators (such as Runge Kutta), this will be done
at the start of each sub-step, with h set to the sub-step size.
If present, auxiliary variables are also assumed to be contained
within the state accessed using HasNumericState.getState(maspack.util.DataBuffer) and HasNumericState.setState(maspack.util.DataBuffer).
numAuxVars in interface HasNumericStatepublic int getAuxVarState(double[] buf,
int idx)
buf, starting at the location idx. See HasNumericState.numAuxVars() for
a description of auxiliary variables. The method returns idx +
num, where num is the number of variables.getAuxVarState in interface HasNumericStatebuf - returns the variable valuesidx - starting point within bufidx plus the number of variablespublic int setAuxVarState(double[] buf,
int idx)
buf, starting at the location idx. See HasNumericState.numAuxVars() for a description of auxiliary variables. The method
returns idx + num, where num is the number of variables.setAuxVarState in interface HasNumericStatebuf - contains the new variable valuesidx - starting point within bufidx plus the number of variablespublic int getAuxVarDerivative(double[] buf,
int idx)
buf, starting at the location idx.
See HasNumericState.numAuxVars() for a description of auxiliary variables. The
method returns idx + num, where num is the number of
variables.getAuxVarDerivative in interface HasNumericStatebuf - returns the variable derivative valuesidx - starting point within bufidx plus the number of variablespublic boolean getCopyReferences(java.util.List<ModelComponent> refs, ModelComponent ancestor)
true if and only if CopyableComponent.isDuplicatable() returns
true.getCopyReferences in interface CopyableComponentrefs - list to which references are appendedancestor - root node of the hierarchy from which references are to be excludedpublic ModelComponent copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
CopyableComponentCOPY_REFERENCES
is set in flags, then any component referenced
by this component should itself be set to a copy. This
should be done first checking copyMap for an
existing copy of the referenced component. If there is no existing
copy, then a copy should be created by calling copy
recursively and adding the new copy to copyMap.copy in interface CopyableComponentcopy in class ModelComponentBaseflags - flags to control the copyingcopyMap - map to possible existing instances of referenced
components