de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts
Class AbstractMultiStateFactory<T extends Copyable<?>>

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.AbstractMultiStateFactory<T>
Type Parameters:
T - type of the discrete state variables
Direct Known Subclasses:
MultiStateFactory

@ALDMetaInfo(export=ALLOWED)
public abstract class AbstractMultiStateFactory<T extends Copyable<?>>
extends Object

Factory class for creating new multi state objects

Author:
Oliver Gress

Field Summary
protected  int cDOF
          degrees of freedom of the continuous variables of a single state
 
Constructor Summary
AbstractMultiStateFactory(int continuousDOF)
          Constructor with specification of the variables of a single state
 
Method Summary
abstract  AbstractMultiState<T> createEmptyMultiState()
          Create an empty multi state object
abstract  AbstractMultiState<T> createMultiState(double[][] continuousStateVariables, T[] discreteStateVariables)
          Create a multi state object initialized by the specified data
abstract  AbstractMultiState<T> createMultiState(Jama.Matrix[] continuousStateVariables, T[] discreteStateVariables)
          Create a multi state object initialized by the specified data
 int getContinuousDOF()
          Get number of continuous state variables
 boolean validMultiState(AbstractMultiState<T> multistate)
          Test if the specified multistate is valid for this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cDOF

protected int cDOF
degrees of freedom of the continuous variables of a single state

Constructor Detail

AbstractMultiStateFactory

public AbstractMultiStateFactory(int continuousDOF)
Constructor with specification of the variables of a single state

Parameters:
continuousDOF - number of continuous state variables
discreteDOF - number of discrete state variables
Method Detail

getContinuousDOF

public int getContinuousDOF()
Get number of continuous state variables

Returns:

validMultiState

public boolean validMultiState(AbstractMultiState<T> multistate)
Test if the specified multistate is valid for this factory. This means that continuous and discrete DOF of the multi state must be equal to the DOFs specified in this factory.

Parameters:
multistate -
Returns:
true if DOFs of multi state and factory match

createEmptyMultiState

public abstract AbstractMultiState<T> createEmptyMultiState()
Create an empty multi state object

Returns:
multi state object with no states

createMultiState

public abstract AbstractMultiState<T> createMultiState(double[][] continuousStateVariables,
                                                       T[] discreteStateVariables)
                                                                    throws IllegalArgumentException
Create a multi state object initialized by the specified data

Parameters:
continuousStateVariables - array of double arrays specifying the continuous variable values of each single state
discreteStateVariables - array of type T specifying the discrete variable values of each single state
Returns:
initialized multi state object
Throws:
IllegalArgumentException - thrown if the outer dimension of the two arrays does not match or if the size of the single state arrays have invalid size

createMultiState

public abstract AbstractMultiState<T> createMultiState(Jama.Matrix[] continuousStateVariables,
                                                       T[] discreteStateVariables)
                                                                    throws IllegalArgumentException
Create a multi state object initialized by the specified data

Parameters:
continuousStateVariables - array of Matrix objects specifying the continuous variable values of each single state
discreteStateVariables - array of type T specifying the discrete variable values of each single state
Returns:
initialized multi state object
Throws:
IllegalArgumentException - thrown if the outer dimension of the two arrays does not match or if the size of the single state arrays have invalid size


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.