Exemplo n.º 1
0
 /**
  * @return RideConfiguration[]
  */
 public function buildConfigurations()
 {
     $rideConfigurations = $this->strategy->buildConfigurations($this->rideNodes, $this->drivingPools, $this->emptyRideNodes);
     $this->rideConfigurations = $rideConfigurations;
     return $rideConfigurations;
 }
Exemplo n.º 2
0
 /**
  * build a good and feasible rideConfiguration to anneal from
  * @param RideStrategy $strategy
  * @return RideConfiguration
  */
 private function buildFeasibleConfigFromStrategy(RideStrategy $strategy)
 {
     return $strategy->buildConfiguration($this->rideNodes, $this->drivingPools, $this->emptyRideNodes);
 }