T - type of the discrete variablespublic class MultiState<T extends Copyable<?>> extends AbstractMultiState<T>
| Modifier and Type | Field and Description |
|---|---|
(package private) Vector<Jama.Matrix> |
statesCont
vector of the target states (continuous variables)
|
(package private) Vector<T> |
statesDiscr
vector of the target states (discrete variables)
|
factory| Constructor and Description |
|---|
MultiState(MultiStateFactory<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
getContinuousDOF, getFactoryVector<Jama.Matrix> statesCont
MultiState(MultiStateFactory<T> factory)
public int getNumberOfStates()
AbstractMultiStategetNumberOfStates in class AbstractMultiState<T extends Copyable<?>>public Jama.Matrix getStateContinuous(int idx)
AbstractMultiStategetStateContinuous in class AbstractMultiState<T extends Copyable<?>>public T getStateDiscrete(int idx)
AbstractMultiStategetStateDiscrete in class AbstractMultiState<T extends Copyable<?>>public void removeState(int idx)
AbstractMultiStateremoveState in class AbstractMultiState<T extends Copyable<?>>public void insertState(Jama.Matrix stateContinuous,
T stateDiscrete)
throws IllegalArgumentException
AbstractMultiStateinsertState in class AbstractMultiState<T extends Copyable<?>>IllegalArgumentExceptionpublic void setState(int idx,
Jama.Matrix stateContinuous,
T stateDiscrete)
throws IllegalArgumentException
AbstractMultiStatesetState in class AbstractMultiState<T extends Copyable<?>>IllegalArgumentExceptionpublic MultiState<T> copy()
AbstractMultiStatecopy in interface Copyable<AbstractMultiState<T extends Copyable<?>>>copy in class AbstractMultiState<T extends Copyable<?>>Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.