Database Reference
In-Depth Information
states
¼
new StateSet(msd);
states.setStaticStates(true);
states.setStaticActionSets(false);
states.setStaticActionSetLength(false);
actionsets
¼
new ActionSet[nstates];
// Fill data:
for (int i
¼
0; i
<
nstates; i++) {
// New state:
double[] values
¼
{i};
State state
¼
new State(values);
state.setMetaData(metaDataState);
states.addState(state);
// New action set:
ActionSet actionSet
¼
new ActionSet();
actionSet.setState(state);
actionSet.setStaticActions(false);
actionsets[i]
¼
actionSet;
}
}
// ---------------------------
// Methods to access states and their actions
// ---------------------------
/**
* Returns state set, i.e. all states available in the
environment.
*
* @return state set of the environment
* @exception MiningException state set access error
*/
public StateSet getStates() throws MiningException {
return states;
}
/**
* Returns action set for a specified state.
*
* @param state specified state
* @return action set of specified state
* @throws MiningException action set access error
*/
public
ActionSet
getActionSet(State
state)
throws
MiningException {