Last change
on this file since 13042 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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
6 | using HeuristicLab.PDPSimulation.DomainModel;
|
---|
7 | using HeuristicLab.Core;
|
---|
8 | using HeuristicLab.Common;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.PDPSimulation {
|
---|
11 | public enum SimulationStateChange { OrderCreated, OrderState, OrderFailed, VehicleCreated, VehicleMoved, VehicleState, VehicleAvailability, 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.