[8670] | 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.Core;
|
---|
| 7 | using HeuristicLab.Common;
|
---|
| 8 | using HeuristicLab.PDPSimulation.DomainModel;
|
---|
| 9 |
|
---|
| 10 | namespace HeuristicLab.PDPSimulation.DistanceMeasures {
|
---|
| 11 | [StorableClass]
|
---|
| 12 | public abstract class DistanceMeasure: ParameterizedNamedItem {
|
---|
| 13 | public DistanceMeasure(): base() {
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | [StorableConstructor]
|
---|
| 17 | protected DistanceMeasure(bool deserializing) : base(deserializing) { }
|
---|
| 18 | protected DistanceMeasure(DistanceMeasure original, Cloner cloner)
|
---|
| 19 | : base(original, cloner) {
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public abstract bool DiversionSupported { get; }
|
---|
| 23 | public abstract double GetDistance(double sourceX, double sourceY, double destX, double destY);
|
---|
| 24 | public abstract double GetDistance(double sourceX, double sourceY,
|
---|
| 25 | double currentX, double currentY,
|
---|
| 26 | double destX, double destY);
|
---|
| 27 | public abstract void Move(double sourceX, double sourceY,
|
---|
| 28 | double currentX, double currentY,
|
---|
| 29 | double destX, double destY, double time, Vehicle.MoveInformation moveInfo,
|
---|
| 30 | out double newPosX, out double newPosY, out double length);
|
---|
| 31 | }
|
---|
| 32 | }
|
---|