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

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.AbstractMultiState<T>
Type Parameters:
T - discrete part of a target's state
All Implemented Interfaces:
Copyable<AbstractMultiState<T>>
Direct Known Subclasses:
MultiState

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

Abstract class to hold the states of multiple targets. A target's state is comprised of a continuous part, i.e. a column vector represented by a JAMA matrix, as well as a discrete part, which e.g. can hold target ID and further information.

Author:
Oliver Gress

Field Summary
protected  AbstractMultiStateFactory<T> factory
          factory that holds information how a target's state is composed
 
Constructor Summary
AbstractMultiState(AbstractMultiStateFactory<T> factory)
          Constructor that assigns a factory
 
Method Summary
abstract  AbstractMultiState<T> copy()
          Copy this multi-state
 int getContinuousDOF()
          Get continuous dimensions of target state in continuous
 AbstractMultiStateFactory<T> getFactory()
          Get associated factory
abstract  int getNumberOfStates()
          Get number of states
abstract  Jama.Matrix getStateContinuous(int idx)
          Get the continuous part of the idx-th state (indices start from 0)
abstract  T getStateDiscrete(int idx)
          Get the discrete part of the idx-th state (indices start from 0)
abstract  void insertState(Jama.Matrix stateContinuous, T stateDiscrete)
          Insert an additional state
abstract  void removeState(int idx)
          Remove the idx-th state (indices start from 0)
abstract  void setState(int idx, Jama.Matrix stateContinuous, T stateDiscrete)
          Set the idx-th state (indices start from 0)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected AbstractMultiStateFactory<T extends Copyable<?>> factory
factory that holds information how a target's state is composed

Constructor Detail

AbstractMultiState

public AbstractMultiState(AbstractMultiStateFactory<T> factory)
Constructor that assigns a factory

Method Detail

getContinuousDOF

public int getContinuousDOF()
Get continuous dimensions of target state in continuous


getFactory

public AbstractMultiStateFactory<T> getFactory()
Get associated factory


getNumberOfStates

public abstract int getNumberOfStates()
Get number of states


getStateContinuous

public abstract Jama.Matrix getStateContinuous(int idx)
Get the continuous part of the idx-th state (indices start from 0)


getStateDiscrete

public abstract T getStateDiscrete(int idx)
Get the discrete part of the idx-th state (indices start from 0)


insertState

public abstract void insertState(Jama.Matrix stateContinuous,
                                 T stateDiscrete)
                          throws IllegalArgumentException
Insert an additional state

Throws:
IllegalArgumentException

setState

public abstract void setState(int idx,
                              Jama.Matrix stateContinuous,
                              T stateDiscrete)
                       throws IllegalArgumentException
Set the idx-th state (indices start from 0)

Throws:
IllegalArgumentException

removeState

public abstract void removeState(int idx)
Remove the idx-th state (indices start from 0)


copy

public abstract AbstractMultiState<T> copy()
Copy this multi-state

Specified by:
copy in interface Copyable<AbstractMultiState<T extends Copyable<?>>>


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