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, getFactory
Vector<Jama.Matrix> statesCont
MultiState(MultiStateFactory<T> factory)
public int getNumberOfStates()
AbstractMultiState
getNumberOfStates
in class AbstractMultiState<T extends Copyable<?>>
public Jama.Matrix getStateContinuous(int idx)
AbstractMultiState
getStateContinuous
in class AbstractMultiState<T extends Copyable<?>>
public T getStateDiscrete(int idx)
AbstractMultiState
getStateDiscrete
in class AbstractMultiState<T extends Copyable<?>>
public void removeState(int idx)
AbstractMultiState
removeState
in class AbstractMultiState<T extends Copyable<?>>
public void insertState(Jama.Matrix stateContinuous, T stateDiscrete) throws IllegalArgumentException
AbstractMultiState
insertState
in class AbstractMultiState<T extends Copyable<?>>
IllegalArgumentException
public void setState(int idx, Jama.Matrix stateContinuous, T stateDiscrete) throws IllegalArgumentException
AbstractMultiState
setState
in class AbstractMultiState<T extends Copyable<?>>
IllegalArgumentException
public MultiState<T> copy()
AbstractMultiState
copy
in interface Copyable<AbstractMultiState<T extends Copyable<?>>>
copy
in class AbstractMultiState<T extends Copyable<?>>
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.