Free cookie consent management tool by TermsFeed Policy Generator

source: branches/1955_DynamicVehicleRouting/HeuristicLab.PDPSimulation/3.3/WaitingStrategies/SimulationModel/PDChange.cs @ 17578

Last change on this file since 17578 was 8670, checked in by svonolfe, 12 years ago

Added first version of the dynamic vehicle routing addon (#1955)

File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6using HeuristicLab.PDPSimulation.DomainModel;
7using HeuristicLab.Core;
8using HeuristicLab.Common;
9
10namespace HeuristicLab.PDPSimulation {
11  public enum SimulationStateChange { OrderCreated, OrderState, OrderFailed, VehicleCreated, VehicleMoved, VehicleState, NoMoreOrders }
12 
13  [StorableClass]
14  public class PDChange : Item {
15    [Storable]
16    public BaseObject BaseObject { get; set; }
17
18    [Storable]
19    public SimulationStateChange ChangeType { get; set; }
20
21    public PDChange() {
22    }
23
24    [StorableConstructor]
25    protected PDChange(bool deserializing) : base(deserializing) { }
26    protected PDChange(PDChange original, Cloner cloner)
27      : base(original, cloner) {
28        BaseObject = cloner.Clone<BaseObject>(original.BaseObject);
29        ChangeType = original.ChangeType;
30    }
31    public override IDeepCloneable Clone(Cloner cloner) {
32      return new PDChange(this, cloner);
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.