@Override public final void handlePlan(final Plan plan) { if (this.directAlgo == null) { this.algothreads[this.count % this.numOfThreads].addPlanToThread(plan); this.count++; } else { this.directAlgo.run(plan); } }
@Override public void run() { for (Plan plan : this.plans) { this.planAlgo.run(plan); this.counter.incCounter(); } } }
@Override public void run(final Person person) { count(); this.nextAlgo.run(person.getSelectedPlan()); }
@Override public void run(final Plan plan) { if (judge(plan)) { count(); this.nextAlgorithm.run(plan); } }
@Override public void run(final Person person) { Plan selectedPlan = person.getSelectedPlan(); if (selectedPlan == null) { // the only way no plan can be selected should be when the person has no plans at all log.warn("Person " + person.getId() + " has no plans!"); return; } if(this.agentsStuck.contains(person.getId())){ this.transitActsRemover.run(selectedPlan); this.router.run(selectedPlan); } } }
@Override public void run(final Plan plan) { final List<Trip> oldTrips = TripStructureUtils.getTrips( plan, getTripRouter().getStageActivityTypes() ); delegate.run( plan ); final List<Trip> newTrips = TripStructureUtils.getTrips( plan, getTripRouter().getStageActivityTypes() ); transmitVehicleInformation( oldTrips, newTrips); }
this.router.run(plan);
double maxDiff2 = Double.NEGATIVE_INFINITY; for (int i = 0; i < 150; i++) { tripPlanMutateTimeAllocation.run(plan);
double maxDiff2 = Double.NEGATIVE_INFINITY; for (int i = 0; i < 150; i++) { tripPlanMutateTimeAllocation.run(plan);
plansCalcRoute.run(plan); scenario.getPopulation().addPerson(person);