Esempio n. 1
0
        static void Main(params string[] args)
        {
            // create environment with random state of cleaning.
            IEnvironment     env  = new VacuumEnvironment();
            IEnvironmentView view = new SimpleEnvironmentView();

            env.AddEnvironmentView(view);

            IAgent a = new SimpleReflexVacuumAgent();

            env.AddAgent(a);
            env.Step(16);
            env.NotifyViews("Performance=" + env.GetPerformanceMeasure(a));
        }
	public void setUp() {
		agent = new SimpleReflexVacuumAgent();
		envChanges = new StringBuilder();
	}
Esempio n. 3
0
 public void setUp()
 {
     agent      = new SimpleReflexVacuumAgent();
     envChanges = TextFactory.CreateStringBuilder();
 }