Changeset 14054 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Evaluators
- Timestamp:
- 07/13/16 08:29:03 (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/Evaluators/DecodingEvaluator.cs
r14053 r14054 30 30 31 31 namespace HeuristicLab.Problems.BinPacking { 32 [Item(" Packingplan Evaluation Algorithm", "Represents a composition of a decoder and an evaluator for bin-packing problems.")]32 [Item("Bin Packing Evaluator (with decoder)", "Represents a composition of a decoder and an evaluator for bin-packing problems.")] 33 33 [StorableClass] 34 public class PackingPlanEvaluationAlgorithm<E, D, B, I> : SingleSuccessorOperator, IPackingPlanEvaluationAlgorithm34 public class DecodingEvaluator<E, D, B, I> : SingleSuccessorOperator, IDecodingEvaluator 35 35 where E : Item //E defines the used Encoding 36 36 where D : class, IPackingPosition … … 41 41 get { return (IValueLookupParameter<IPackingSolutionDecoder>)Parameters["PackingSolutionDecoder"]; } 42 42 } 43 ILookupParameter<IPackingSolutionDecoder> I PackingPlanEvaluationAlgorithm.PackingSolutionDecoderParameter {43 ILookupParameter<IPackingSolutionDecoder> IDecodingEvaluator.PackingSolutionDecoderParameter { 44 44 get { return PackingSolutionDecoderParameter; } 45 45 } … … 47 47 get { return (IValueLookupParameter<IEvaluator>)Parameters["PackingPlanEvaluator"]; } 48 48 } 49 ILookupParameter<IEvaluator> I PackingPlanEvaluationAlgorithm.PackingPlanEvaluatorParameter {49 ILookupParameter<IEvaluator> IDecodingEvaluator.PackingPlanEvaluatorParameter { 50 50 get { return PackingPlanEvaluatorParameter; } 51 51 } … … 55 55 56 56 [StorableConstructor] 57 protected PackingPlanEvaluationAlgorithm(bool deserializing) : base(deserializing) { }58 protected PackingPlanEvaluationAlgorithm(PackingPlanEvaluationAlgorithm<E, D, B, I> original, Cloner cloner)57 protected DecodingEvaluator(bool deserializing) : base(deserializing) { } 58 protected DecodingEvaluator(DecodingEvaluator<E, D, B, I> original, Cloner cloner) 59 59 : base(original, cloner) { 60 60 } 61 public PackingPlanEvaluationAlgorithm()61 public DecodingEvaluator () 62 62 : base() { 63 63 Parameters.Add(new ValueLookupParameter<IPackingSolutionDecoder>("PackingSolutionDecoder", "The decoding operator that is used to calculate a packing plan from the used representation.")); … … 67 67 } 68 68 public override IDeepCloneable Clone(Cloner cloner) { 69 return new PackingPlanEvaluationAlgorithm<E, D, B, I>(this, cloner);69 return new DecodingEvaluator<E, D, B, I>(this, cloner); 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.