public abstract class ModelBase extends OpenSimObject implements ModelComponentGenerator<MechModel>
Constructor and Description |
---|
ModelBase() |
Modifier and Type | Method and Description |
---|---|
ModelBase |
clone() |
MechModel |
createComponent(java.io.File geometryPath,
ModelComponentMap componentMap)
Creates and returns a model component, using the provided component map
to look up other dependent objects.
|
abstract MechModel |
createModel(MechModel mech,
java.io.File geometryPath,
ModelComponentMap componentMap)
Populates a mech model, creating a new one if necessary
|
BodySet |
getBodySet() |
ConstraintSet |
getConstraintSet() |
java.lang.String |
getCredits() |
ForceSet |
getForceSet() |
java.lang.String |
getForceUnits() |
Vector3d |
getGravity() |
java.lang.String |
getLengthUnits() |
MarkerSet |
getMarkerSet() |
java.lang.String |
getPath()
Root path "/"
|
java.lang.String |
getPublications() |
int |
getVersion()
OpenSim model version
|
void |
setBodySet(BodySet bodySet) |
void |
setConstraintSet(ConstraintSet constraintSet) |
void |
setCredits(java.lang.String credits) |
void |
setForceSet(ForceSet forceSet) |
void |
setForceUnits(java.lang.String force_units) |
void |
setGravity(Vector3d gravity) |
void |
setLengthUnits(java.lang.String length_units) |
void |
setMarkerSet(MarkerSet markerSet) |
void |
setPublications(java.lang.String publications) |
void |
setVersion(int version)
Sets OpenSim model version
|
getName, getParent, setName, setParent
public java.lang.String getPath()
getPath
in class OpenSimObject
public int getVersion()
public void setVersion(int version)
version
- version IDpublic java.lang.String getCredits()
public void setCredits(java.lang.String credits)
public java.lang.String getPublications()
public void setPublications(java.lang.String publications)
public java.lang.String getLengthUnits()
public void setLengthUnits(java.lang.String length_units)
public java.lang.String getForceUnits()
public void setForceUnits(java.lang.String force_units)
public Vector3d getGravity()
public void setGravity(Vector3d gravity)
public BodySet getBodySet()
public void setBodySet(BodySet bodySet)
public ForceSet getForceSet()
public void setForceSet(ForceSet forceSet)
public ConstraintSet getConstraintSet()
public void setConstraintSet(ConstraintSet constraintSet)
public MarkerSet getMarkerSet()
public void setMarkerSet(MarkerSet markerSet)
public ModelBase clone()
clone
in interface Clonable
clone
in class OpenSimObject
public MechModel createComponent(java.io.File geometryPath, ModelComponentMap componentMap)
ModelComponentGenerator
createComponent
in interface ModelComponentGenerator<MechModel>
geometryPath
- path to search for geometry filescomponentMap
- map for looking up other objectspublic abstract MechModel createModel(MechModel mech, java.io.File geometryPath, ModelComponentMap componentMap)
mech
- model to populategeometryPath
- path to search for geometry filescomponentMap
- map of objects to components