artisynth.core.inverse
Class LeastSquaresTermBase

java.lang.Object
  extended by artisynth.core.inverse.LeastSquaresTermBase
All Implemented Interfaces:
LeastSquaresTerm, HasProperties
Direct Known Subclasses:
DampingTerm, L2RegularizationTerm, MotionTargetTerm, StaticMotionTargetTerm

public abstract class LeastSquaresTermBase
extends java.lang.Object
implements LeastSquaresTerm, HasProperties


Field Summary
static double defaultWeight
           
static PropertyList myProps
           
 
Constructor Summary
LeastSquaresTermBase()
           
LeastSquaresTermBase(double weight)
           
 
Method Summary
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 Property getProperty(java.lang.String pathName)
          Returns a property associated with a specified path name.
 double getWeight()
           
 void setWeight(double w)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artisynth.core.inverse.LeastSquaresTerm
dispose, getTargetSize, getTerm
 

Field Detail

defaultWeight

public static final double defaultWeight
See Also:
Constant Field Values

myProps

public static PropertyList myProps
Constructor Detail

LeastSquaresTermBase

public LeastSquaresTermBase()

LeastSquaresTermBase

public LeastSquaresTermBase(double weight)
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
Returns:
static information for all exported properties

getProperty

public Property getProperty(java.lang.String pathName)
Description copied from interface: HasProperties
Returns a property associated with a specified path name. All properties exported by this object must have a name which is a valid Java identifier. Specifying one of these names causes the corresponding Property to be returned. Handles to sub-properties can also be obtained by delimiting the sub-property name(s) by '.' characters. A sub-property exists if the value of a property is itself an object which exports properties. It is only possible to obtain a sub-property handle if each of its ancestor properties exports their values by reference.

Specified by:
getProperty in interface HasProperties
Parameters:
pathName - name of the desired property or sub-property
Returns:
handle to the property

setWeight

public void setWeight(double w)
Specified by:
setWeight in interface LeastSquaresTerm

getWeight

public double getWeight()