motris.main
Class DOFMatrix

java.lang.Object
  extended byJSci.maths.Matrix
      extended byJSci.maths.DoubleMatrix
          extended byJSci.maths.DoubleSquareMatrix
              extended bymotris.main.DerivableMatrix
                  extended bymotris.main.DOFMatrix
All Implemented Interfaces:
JSci.maths.groups.AbelianGroup.Member, JSci.maths.algebras.Algebra.Member, java.lang.Cloneable, JSci.maths.Member, JSci.maths.algebras.Module.Member, ParameterizedObject, JSci.maths.fields.Ring.Member, java.io.Serializable, JSci.maths.algebras.VectorSpace.Member

public class DOFMatrix
extends DerivableMatrix
implements ParameterizedObject

Matrix that supports compting its derivative (with respect to a varying amount of FreeParameters specified during its creation)

Author:
preuter, dahlkamp
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
(package private)  int[] DOF
           
(package private)  java.util.Vector higherOrderParams
           
(package private)  int[] paramIndices
           
(package private)  Parameter[] Params
           
 
Fields inherited from class JSci.maths.DoubleSquareMatrix
LU, LUpivot
 
Fields inherited from class JSci.maths.DoubleMatrix
ARRAY_2D, matrix
 
Fields inherited from class JSci.maths.Matrix
CLASS_SPECIFIC, numCols, numRows, storageFormat
 
Constructor Summary
private DOFMatrix(Parameter RotX, Parameter RotY, Parameter RotZ, Parameter TransX, Parameter TransY, Parameter TransZ, int[] _indices)
           
  DOFMatrix(ParameterSet _params, State _state)
           
 
Method Summary
 boolean addParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
          Register dependent component that wants to be notified if this object changes parameters
 JSci.maths.DoubleSquareMatrix[] derive()
           
 JSci.maths.DoubleSquareMatrix[][] derive2()
           
 int[] getDOF()
           
 int getDOFCount()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 ParameterSet getParameters(boolean forSave)
          Get Matrix parameters
 boolean parameterEdited(ParameterSet editedParams)
          Notify when Parameter set was changed during edit
 boolean removeParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
          un-register dependent object
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 void update()
          update calculates the matrix defined by the transformations described by Params RotX represents a rotation about the X-axis, TransX a translation along the X-axis the resulting matrix is the product of TransZ * TransY * TransX * RotY * RotX * RotZ
 
Methods inherited from class motris.main.DerivableMatrix
clone, inverse
 
Methods inherited from class JSci.maths.DoubleSquareMatrix
add, add, choleskyDecompose, det, isSymmetric, isUnitary, luDecompose, mapElements, multiply, multiply, operatorNorm, polarDecompose, qrDecompose, scalarMultiply, scalarProduct, scalarProduct, singularValueDecompose, subtract, subtract, trace, transpose
 
Methods inherited from class JSci.maths.DoubleMatrix
add, directSum, equals, finalize, frobeniusNorm, getElement, hashCode, infNorm, multiply, multiply, multiplyInto, multiplyInto, negate, scalarDivide, scalarDivide, scalarMultiply, setElement, setValueFrom, subtract, tensorProduct, toComplexMatrix, toIntegerMatrix, toString
 
Methods inherited from class JSci.maths.Matrix
columns, getInvalidElementMsg, rows
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Params

Parameter[] Params

higherOrderParams

java.util.Vector higherOrderParams

paramIndices

int[] paramIndices

DOF

int[] DOF
Constructor Detail

DOFMatrix

public DOFMatrix(ParameterSet _params,
                 State _state)

DOFMatrix

private DOFMatrix(Parameter RotX,
                  Parameter RotY,
                  Parameter RotZ,
                  Parameter TransX,
                  Parameter TransY,
                  Parameter TransZ,
                  int[] _indices)
Method Detail

derive

public JSci.maths.DoubleSquareMatrix[] derive()
Overrides:
derive in class DerivableMatrix

derive2

public JSci.maths.DoubleSquareMatrix[][] derive2()
Overrides:
derive2 in class DerivableMatrix

getDOF

public int[] getDOF()
Overrides:
getDOF in class DerivableMatrix

getDOFCount

public int getDOFCount()

update

public void update()
update calculates the matrix defined by the transformations described by Params RotX represents a rotation about the X-axis, TransX a translation along the X-axis the resulting matrix is the product of TransZ * TransY * TransX * RotY * RotX * RotZ

Overrides:
update in class DerivableMatrix

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Returns:
Vector[Parameter]

getParameters

public ParameterSet getParameters(boolean forSave)
Get Matrix parameters

Parameters:
forSave - if true, return all Parameters (free+nonfree). If false, return only nonfree Parameters (for viewing)
Returns:
matrix parameters

parameterEdited

public boolean parameterEdited(ParameterSet editedParams)
Description copied from interface: ParameterizedObject
Notify when Parameter set was changed during edit

Specified by:
parameterEdited in interface ParameterizedObject

addParameterChangedListener

public boolean addParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
Description copied from interface: ParameterizedObject
Register dependent component that wants to be notified if this object changes parameters

Specified by:
addParameterChangedListener in interface ParameterizedObject
Parameters:
l -
Returns:
false if Notify Capability was not implemented by this object, otherwise true

removeParameterChangedListener

public boolean removeParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
Description copied from interface: ParameterizedObject
un-register dependent object

Specified by:
removeParameterChangedListener in interface ParameterizedObject
Parameters:
l -
Returns:
false if object was not registered or if notify capability is not implemented by this object