Search in sources :

Example 1 with Environment

use of aima.core.agent.Environment in project aima-java by aimacode.

the class TrivialVacuumDemo method main.

public static void main(String[] args) {
    // create environment with random state of cleaning.
    Environment env = new VacuumEnvironment();
    EnvironmentView view = new SimpleEnvironmentView();
    env.addEnvironmentView(view);
    Agent a = null;
    a = new ModelBasedReflexVacuumAgent();
    // a = new ReflexVacuumAgent();
    // a = new SimpleReflexVacuumAgent();
    // a = new TableDrivenVacuumAgent();
    env.addAgent(a);
    env.step(16);
    env.notifyViews("Performance=" + env.getPerformanceMeasure(a));
}
Also used : ModelBasedReflexVacuumAgent(aima.core.environment.vacuum.ModelBasedReflexVacuumAgent) Agent(aima.core.agent.Agent) VacuumEnvironment(aima.core.environment.vacuum.VacuumEnvironment) ModelBasedReflexVacuumAgent(aima.core.environment.vacuum.ModelBasedReflexVacuumAgent) EnvironmentView(aima.core.agent.EnvironmentView) SimpleEnvironmentView(aima.core.agent.impl.SimpleEnvironmentView) VacuumEnvironment(aima.core.environment.vacuum.VacuumEnvironment) Environment(aima.core.agent.Environment) SimpleEnvironmentView(aima.core.agent.impl.SimpleEnvironmentView)

Aggregations

Agent (aima.core.agent.Agent)1 Environment (aima.core.agent.Environment)1 EnvironmentView (aima.core.agent.EnvironmentView)1 SimpleEnvironmentView (aima.core.agent.impl.SimpleEnvironmentView)1 ModelBasedReflexVacuumAgent (aima.core.environment.vacuum.ModelBasedReflexVacuumAgent)1 VacuumEnvironment (aima.core.environment.vacuum.VacuumEnvironment)1