public class CognitiveModelLiteState extends AbstractCloneableSerializable implements CognitiveModelState
Constructor and Description |
---|
CognitiveModelLiteState(CognitiveModelLiteState other)
Creates a new copy of a CognitiveModelLiteState.
|
CognitiveModelLiteState(int numModules)
Creates a new instance of CognitiveModelState.
|
CognitiveModelLiteState(int numModules,
int expectedMaxIdentifier)
Creates a new instance of CognitiveModelState.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this CognitiveModelLite state, resetting it to being
uninitialized.
|
CognitiveModelLiteState |
clone()
This makes public the clone method on the
Object class and
removes the exception that it throws. |
CogxelStateLite |
getCogxels()
Gets the CogxelState.
|
CognitiveModelInput |
getInput()
Gets the input to the model for this state.
|
java.util.Collection<CognitiveModuleState> |
getModuleStates()
Gets the collection of module states.
|
CognitiveModuleState[] |
getModuleStatesArray()
Gets the module states array.
|
int |
getNumModuleStates()
Returns the number of module states in this model state.
|
boolean |
isInitialized()
Returns true if the state has been initialized.
|
protected void |
setCogxels(CogxelStateLite cogxels)
Setter for cogxels
|
void |
setInitialized(boolean initialized)
Sets whether or not this state has been initialized.
|
void |
setInput(CognitiveModelInput input)
Sets the input for this model state.
|
protected void |
setModuleStatesArray(CognitiveModuleState[] moduleStatesArray)
Sets the array of module states.
|
public CognitiveModelLiteState(int numModules)
numModules
- The number of modules in the model.public CognitiveModelLiteState(int numModules, int expectedMaxIdentifier)
numModules
- The number of modules in the model.expectedMaxIdentifier
- The expected maximum identifier.public CognitiveModelLiteState(CognitiveModelLiteState other)
other
- The CognitiveModelLiteState to copy.public CognitiveModelLiteState clone()
Object
class and
removes the exception that it throws. Its default behavior is to
automatically create a clone of the exact type of object that the
clone is called on and to copy all primitives but to keep all references,
which means it is a shallow copy.
Extensions of this class may want to override this method (but call
super.clone()
to implement a "smart copy". That is, to target
the most common use case for creating a copy of the object. Because of
the default behavior being a shallow copy, extending classes only need
to handle fields that need to have a deeper copy (or those that need to
be reset). Some of the methods in ObjectUtil
may be helpful in
implementing a custom clone method.
Note: The contract of this method is that you must use
super.clone()
as the basis for your implementation.clone
in interface CognitiveModelState
clone
in interface CloneableSerializable
clone
in class AbstractCloneableSerializable
public void clear()
public CognitiveModelInput getInput()
getInput
in interface CognitiveModelState
public CogxelStateLite getCogxels()
getCogxels
in interface CognitiveModelState
public java.util.Collection<CognitiveModuleState> getModuleStates()
getModuleStates
in interface CognitiveModelState
public int getNumModuleStates()
public boolean isInitialized()
public void setInitialized(boolean initialized)
initialized
- True if the state has been initialized.public void setInput(CognitiveModelInput input)
setInput
in interface CognitiveModelState
input
- The new input.protected void setCogxels(CogxelStateLite cogxels)
cogxels
- The state of the Cogxels.public CognitiveModuleState[] getModuleStatesArray()
protected void setModuleStatesArray(CognitiveModuleState[] moduleStatesArray)
moduleStatesArray
- The new array of module states.