super(width, height, cellWidth, cellHeight);
stateOptions = new ArrayList[width][height];
}
public void setOptionPool(List<? extends Option> options) {
VectorState state;
ArrayList<Option> eligibleOptions;
for ( int i = 0; i < stateOptions.length; i++ ) {
for ( int j = 0; j < stateOptions[0].length; j++ ) {
eligibleOptions = new ArrayList<Option>();
state = new VectorState(new double[]{i, j});
for ( Option o : options )
if ( o.isEligible(state) )
eligibleOptions.add(o);
stateOptions[i][j] = eligibleOptions;
}