de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl
Class MultiState<T extends Copyable<?>>

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.AbstractMultiState<T>
      extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl.MultiState<T>
Type Parameters:
T - type of the discrete variables
All Implemented Interfaces:
Copyable<AbstractMultiState<T>>

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

Multi-target state implementation. Continuous and discrete parts of states are stored in separate Java-Vectors.

Author:
Oliver Gress

Field Summary
 
Fields inherited from class de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.AbstractMultiState
factory
 
Method Summary
 MultiState<T> copy()
          Copy this multi-state
 int getNumberOfStates()
          Get number of states
 Jama.Matrix getStateContinuous(int idx)
          Get the continuous part of the idx-th state (indices start from 0)
 T getStateDiscrete(int idx)
          Get the discrete part of the idx-th state (indices start from 0)
 void insertState(Jama.Matrix stateContinuous, T stateDiscrete)
          Insert an additional state
 void removeState(int idx)
          Remove the idx-th state (indices start from 0)
 void setState(int idx, Jama.Matrix stateContinuous, T stateDiscrete)
          Set the idx-th state (indices start from 0)
 
Methods inherited from class de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.AbstractMultiState
getContinuousDOF, getFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumberOfStates

public int getNumberOfStates()
Description copied from class: AbstractMultiState
Get number of states

Specified by:
getNumberOfStates in class AbstractMultiState<T extends Copyable<?>>

getStateContinuous

public Jama.Matrix getStateContinuous(int idx)
Description copied from class: AbstractMultiState
Get the continuous part of the idx-th state (indices start from 0)

Specified by:
getStateContinuous in class AbstractMultiState<T extends Copyable<?>>

getStateDiscrete

public T getStateDiscrete(int idx)
Description copied from class: AbstractMultiState
Get the discrete part of the idx-th state (indices start from 0)

Specified by:
getStateDiscrete in class AbstractMultiState<T extends Copyable<?>>

removeState

public void removeState(int idx)
Description copied from class: AbstractMultiState
Remove the idx-th state (indices start from 0)

Specified by:
removeState in class AbstractMultiState<T extends Copyable<?>>

insertState

public void insertState(Jama.Matrix stateContinuous,
                        T stateDiscrete)
                 throws IllegalArgumentException
Description copied from class: AbstractMultiState
Insert an additional state

Specified by:
insertState in class AbstractMultiState<T extends Copyable<?>>
Throws:
IllegalArgumentException

setState

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

Specified by:
setState in class AbstractMultiState<T extends Copyable<?>>
Throws:
IllegalArgumentException

copy

public MultiState<T> copy()
Description copied from class: AbstractMultiState
Copy this multi-state

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


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