artisynth.core.materials
Class SimpleAxialMuscle

java.lang.Object
  extended by artisynth.core.materials.MaterialBase
      extended by artisynth.core.materials.AxialMaterial
          extended by artisynth.core.materials.LinearAxialMaterial
              extended by artisynth.core.materials.SimpleAxialMuscle
All Implemented Interfaces:
ScalableUnits, java.lang.Cloneable, CompositeProperty, HasProperties, Clonable, Scannable

public class SimpleAxialMuscle
extends LinearAxialMaterial


Field Summary
static PropertyList myProps
           
 
Constructor Summary
SimpleAxialMuscle()
           
SimpleAxialMuscle(double k, double d, double max)
           
 
Method Summary
 SimpleAxialMuscle clone()
          Returns a clone of this composite property.
 double computeF(double l, double ldot, double l0, double excitation)
           
 boolean equals(AxialMaterial mat)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getMaxForce()
           
 PropertyMode getMaxForceMode()
           
 void scaleDistance(double s)
          Scales all distance coordinates.
 void scaleMass(double s)
          Scales all mass units.
 void setMaxForce(double max)
           
 void setMaxForceMode(PropertyMode mode)
           
 
Methods inherited from class artisynth.core.materials.LinearAxialMaterial
computeDFdl, computeDFdldot, getDamping, getDampingMode, getStiffness, getStiffnessMode, isDFdldotZero, setDamping, setDampingMode, setStiffness, setStiffnessMode
 
Methods inherited from class artisynth.core.materials.AxialMaterial
equals, getSubClasses
 
Methods inherited from class artisynth.core.materials.MaterialBase
getProperty, getPropertyHost, getPropertyInfo, hasProperty, hasSymmetricTangent, isWritable, scan, setPropertyHost, setPropertyInfo, tangentSymmetryChanged, updateMaterial, write
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

SimpleAxialMuscle

public SimpleAxialMuscle()

SimpleAxialMuscle

public SimpleAxialMuscle(double k,
                         double d,
                         double max)
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Overrides:
getAllPropertyInfo in class LinearAxialMaterial
Returns:
static information for all exported properties

getMaxForce

public double getMaxForce()

setMaxForce

public void setMaxForce(double max)

getMaxForceMode

public PropertyMode getMaxForceMode()

setMaxForceMode

public void setMaxForceMode(PropertyMode mode)

computeF

public double computeF(double l,
                       double ldot,
                       double l0,
                       double excitation)
Overrides:
computeF in class LinearAxialMaterial

equals

public boolean equals(AxialMaterial mat)
Overrides:
equals in class LinearAxialMaterial

clone

public SimpleAxialMuscle clone()
Description copied from interface: CompositeProperty
Returns a clone of this composite property.

Specified by:
clone in interface CompositeProperty
Specified by:
clone in interface Clonable
Overrides:
clone in class LinearAxialMaterial
Returns:
clone of this property

scaleDistance

public void scaleDistance(double s)
Description copied from interface: ScalableUnits
Scales all distance coordinates.

Specified by:
scaleDistance in interface ScalableUnits
Overrides:
scaleDistance in class LinearAxialMaterial
Parameters:
s - scaling factor

scaleMass

public void scaleMass(double s)
Description copied from interface: ScalableUnits
Scales all mass units.

Specified by:
scaleMass in interface ScalableUnits
Overrides:
scaleMass in class LinearAxialMaterial
Parameters:
s - scaling factor