예제 #1
0
  public void CallScenarioB(CityPanel c) {
    //	All workplaces fully employed.
    //	Day starts and all workers go to work.
    //	Three not-working persons eat at home, then visit all the workplaces in different orders.
    //	[one should walk; one should take a car; one should take a bus.]

    workShift();
    setDanielRestClosed(c);
    oneBuildEmployed(c);

    PersonAgent p = new PersonAgent("Driver", "None", "Wealthy");
    p.GiveCar();
    p.addItem("Juice", 0, 2, 2);
    p.setBus(false);
    c.addPerson(p);

    PersonAgent p2 = new PersonAgent("Busser", "None", "Average");
    p2.setBus(true);
    c.addPerson(p2);

    PersonAgent p3 = new PersonAgent("Walker", "None", "Poor");
    p3.setBus(false);
    p3.setHungry();
    c.addPerson(p3);
  }
예제 #2
0
  public void CallScenarioA(CityPanel c) { // for points 1-4
    // 	A:
    //	All workplaces (markets, all restaurants, banks) fully employed.
    //	Day starts and all workers go to work.
    //	One not-working person eats at home, then visits all the workplaces by walking.
    //	Roads should have appropriate complexity [e.g. intersections with stop signs and/or signals]

    workShift();
    setDanielRestClosed(c);
    oneBuildEmployed(c);
    PersonAgent p = new PersonAgent("Scen A", "None", "Wealthy");
    p.addItem("Juice", 0, 2, 2);
    c.addPerson(p);
    p.setHungry();
    p.setBus(false);
  }