use of aima.gui.fx.framework.Parameter in project aima-java by aimacode.
the class EightPuzzleApp method createParameters.
protected List<Parameter> createParameters() {
Parameter p1 = new Parameter(PARAM_INIT_CONF, "Three Moves", "Medium", "Extreme", "Random");
Parameter p2 = new Parameter(PARAM_STRATEGY, (Object[]) SEARCH_NAMES.toArray());
return Arrays.asList(p1, p2);
}
use of aima.gui.fx.framework.Parameter in project aima-java by aimacode.
the class EightPuzzleApp method createRootPane.
/**
* Defines state view, parameters, and call-back functions and calls the
* simulation pane builder to create layout and controller objects.
*/
@Override
public Pane createRootPane() {
BorderPane root = new BorderPane();
StackPane stateView = new StackPane();
stateViewCtrl = new EightPuzzleViewCtrl(stateView);
List<Parameter> params = createParameters();
SimulationPaneBuilder builder = new SimulationPaneBuilder();
builder.defineParameters(params);
builder.defineStateView(stateView);
builder.defineInitMethod(this::initialize);
builder.defineSimMethod(this::simulate);
simPaneCtrl = builder.getResultFor(root);
return root;
}
use of aima.gui.fx.framework.Parameter in project aima-java by aimacode.
the class SimulatedAnnealingMaximumFinderApp method createParameters.
protected List<Parameter> createParameters() {
Parameter p1 = new Parameter(PARAM_FUNC_SELECT);
p1.setValues(Functions.f1, Functions.f2, Functions.f3);
p1.setValueNames("f1", "f2", "f3");
Parameter p2 = new Parameter(PARAM_K, 1, 20, 100);
p2.setDefaultValueIndex(1);
Parameter p3 = new Parameter(PARAM_LAMBDA, 0.01, 0.05, 0.1, 0.5);
p3.setDefaultValueIndex(1);
Parameter p4 = new Parameter(PARAM_MAX_ITER, 100, 500, 1000);
p4.setDefaultValueIndex(1);
return Arrays.asList(p1, p2, p3, p4);
}
use of aima.gui.fx.framework.Parameter in project aima-java by aimacode.
the class VacuumAgentApp method createParameters.
protected List<Parameter> createParameters() {
Parameter p1 = new Parameter(PARAM_ENV, "A/B Deterministic Environment", "A/B Non-Deterministic Environment");
Parameter p2 = new Parameter(PARAM_AGENT, "TableDrivenVacuumAgent", "ReflexVacuumAgent", "SimpleReflexVacuumAgent", "ModelBasedReflexVacuumAgent", "NondeterministicVacuumAgent");
return Arrays.asList(p1, p2);
}
use of aima.gui.fx.framework.Parameter in project aima-java by aimacode.
the class OsmAgentBaseApp method createRootPane.
/**
* Defines state view, parameters, and call-back functions and calls the
* simulation pane builder to create layout and controller objects.
*/
@Override
public Pane createRootPane() {
BorderPane root = new BorderPane();
List<Parameter> params = createParameters();
StackPane mapPane = new StackPane();
mapPaneCtrl = new MapPaneCtrl(mapPane);
loadMap();
StackPane envView = new StackPane();
envViewCtrl = new SimpleEnvironmentViewCtrl(envView, mapPane, 0.75);
SimulationPaneBuilder builder = new SimulationPaneBuilder();
builder.defineParameters(params);
builder.defineStateView(envView);
builder.defineInitMethod(this::initialize);
builder.defineSimMethod(this::simulate);
simPaneCtrl = builder.getResultFor(root);
simPaneCtrl.setParam(SimulationPaneCtrl.PARAM_SIM_SPEED, 0);
return root;
}
Aggregations