Changeset 8747
- Timestamp:
- 10/05/12 16:04:40 (12 years ago)
- Location:
- branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/HeuristicLab.PDPSimulation-3.3.csproj
r8714 r8747 188 188 <Compile Include="Optimizers\DynamicPDPOptimization.cs" /> 189 189 <Compile Include="Optimizers\LocalUpdate\BestInsertion.cs" /> 190 <Compile Include="Optimizers\LocalUpdate\PriorityDispatching.cs" /> 190 191 <Compile Include="Optimizers\Reoptimization\PFIHReoptimization.cs" /> 191 192 <Compile Include="Parsers\DefaultDynPDPParser.cs" /> -
branches/DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/SimulationModel/MoveVehicleAction.cs
r8670 r8747 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 3 using HeuristicLab.Common; 4 using HeuristicLab.PDPSimulation.DistanceMeasures; 5 using HeuristicLab.PDPSimulation.DomainModel; 5 6 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 using HeuristicLab.Common;7 using HeuristicLab.PDPSimulation.DomainModel;8 using HeuristicLab.PDPSimulation.DistanceMeasures;9 7 10 8 namespace HeuristicLab.PDPSimulation { 11 public enum VehicleAction { Wait, Pickup, Deliver, Park, Invalid } 12 9 public enum VehicleAction { Wait, Pickup, Deliver, Park, Invalid } 10 13 11 [StorableClass] 14 public class MoveVehicleAction : PDAction {12 public class MoveVehicleAction : PDAction { 15 13 [Storable] 16 14 double sourceX; … … 26 24 get { return sourceY; } 27 25 } 28 26 29 27 [Storable] 30 28 double targetX; … … 63 61 64 62 public MoveVehicleAction( 65 Guid vehicleId, 63 Guid vehicleId, 66 64 double targetX, double targetY, VehicleAction action, Order order, bool diversionAllowed, DistanceMeasure distMeasure) 67 65 : base(vehicleId) { 68 69 70 71 72 73 74 75 76 77 78 79 66 this.targetX = targetX; 67 this.targetY = targetY; 68 this.action = action; 69 this.order = order; 70 this.serviceTime = 0; 71 this.completed = false; 72 this.diversionAllowed = diversionAllowed; 73 this.interruptable = diversionAllowed; 74 this.distMeasure = distMeasure; 75 76 this.sourceX = -1; 77 this.sourceY = -1; 80 78 } 81 79 [StorableConstructor] 82 protected MoveVehicleAction(bool deserializing) : base(deserializing) { 80 protected MoveVehicleAction(bool deserializing) 81 : base(deserializing) { 83 82 } 84 83 protected MoveVehicleAction(MoveVehicleAction original, Cloner cloner) … … 266 265 else 267 266 order.OrderState = OrderState.PickedUp; 267 vehicle.CurrentOrder = Guid.Empty; 268 268 changes.Add(new PDChange() { ChangeType = SimulationStateChange.OrderState, BaseObject = order }); 269 269 … … 332 332 changes.Add(new PDChange() { ChangeType = SimulationStateChange.OrderState, BaseObject = order }); 333 333 334 vehicle.CurrentOrder = Guid.Empty; 335 334 336 vehicle.VehicleState = VehicleState.Waiting; 335 337 changes.Add(new PDChange() { ChangeType = SimulationStateChange.VehicleState, BaseObject = baseObject });
Note: See TracChangeset
for help on using the changeset viewer.