Changeset 4682 for branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters
- Timestamp:
- 10/29/10 19:47:39 (14 years ago)
- Location:
- branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/BoolConverter.cs
r3881 r4682 22 22 using System; 23 23 using System.Linq; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; … … 31 32 public class BoolConverter : Item, IItemToSolutionMessageConverter { 32 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<bool>), typeof(ValueTypeArray<bool>), typeof(ValueTypeMatrix<bool>) }; 34 [StorableConstructor] 35 protected BoolConverter(bool deserializing) : base(deserializing) { } 36 protected BoolConverter(BoolConverter original, Cloner cloner) : base(original, cloner) { } 37 public override IDeepCloneable Clone(Cloner cloner) { 38 return new BoolConverter(this, cloner); 39 } 40 public BoolConverter() : base() { } 33 41 34 42 #region IItemToSolutionMessageConverter Members 35 43 36 44 public Type[] ItemTypes { 37 45 get { return itemTypes; } -
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/DateTimeValueConverter.cs
r4068 r4682 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 30 31 public class DateTimeValueConverter : Item, IItemToSolutionMessageConverter { 31 32 private static readonly Type[] itemTypes = new Type[] { typeof(DateTimeValue) }; 33 [StorableConstructor] 34 protected DateTimeValueConverter(bool deserializing) : base(deserializing) { } 35 protected DateTimeValueConverter(DateTimeValueConverter original, Cloner cloner) : base(original, cloner) { } 36 public override IDeepCloneable Clone(Cloner cloner) { 37 return new DateTimeValueConverter(this, cloner); 38 } 39 public DateTimeValueConverter() : base() { } 32 40 33 41 #region IItemToSolutionMessageConverter Members -
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/DoubleConverter.cs
r3881 r4682 22 22 using System; 23 23 using System.Linq; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; … … 32 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<double>), typeof(ValueTypeArray<double>), typeof(ValueTypeMatrix<double>) }; 33 34 35 [StorableConstructor] 36 protected DoubleConverter(bool deserializing) : base(deserializing) { } 37 protected DoubleConverter(DoubleConverter original, Cloner cloner) : base(original, cloner) { } 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new DoubleConverter(this, cloner); 40 } 41 public DoubleConverter() : base() { } 42 34 43 #region IItemToSolutionMessageConverter Members 35 44 36 45 public Type[] ItemTypes { 37 46 get { return itemTypes; } -
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/IntegerConverter.cs
r3881 r4682 22 22 using System; 23 23 using System.Linq; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; … … 32 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<int>), typeof(ValueTypeArray<int>), typeof(ValueTypeMatrix<int>) }; 33 34 35 [StorableConstructor] 36 protected IntegerConverter(bool deserializing) : base(deserializing) { } 37 protected IntegerConverter(IntegerConverter original, Cloner cloner) : base(original, cloner) { } 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new IntegerConverter(this, cloner); 40 } 41 public IntegerConverter() : base() { } 42 34 43 #region IItemToSolutionMessageConverter Members 35 44 36 45 public Type[] ItemTypes { 37 46 get { return itemTypes; } -
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/StringConverter.cs
r4068 r4682 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 30 31 public class StringConverter : Item, IItemToSolutionMessageConverter { 31 32 private static readonly Type[] itemTypes = new Type[] { typeof(StringValue), typeof(StringArray), typeof(StringMatrix), typeof(IStringConvertibleValue), typeof(IStringConvertibleArray), typeof(IStringConvertibleMatrix) }; 33 34 [StorableConstructor] 35 protected StringConverter(bool deserializing) : base(deserializing) { } 36 protected StringConverter(StringConverter original, Cloner cloner) : base(original, cloner) { } 37 public override IDeepCloneable Clone(Cloner cloner) { 38 return new StringConverter(this, cloner); 39 } 40 public StringConverter() : base() { } 32 41 33 42 #region IItemToSolutionMessageConverter Members -
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.3/Converters/TimeSpanValueConverter.cs
r4068 r4682 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 30 31 public class TimeSpanValueConverter : Item, IItemToSolutionMessageConverter { 31 32 private static readonly Type[] itemTypes = new Type[] { typeof(TimeSpanValue) }; 33 34 [StorableConstructor] 35 protected TimeSpanValueConverter(bool deserializing) : base(deserializing) { } 36 protected TimeSpanValueConverter(TimeSpanValueConverter original, Cloner cloner) : base(original, cloner) { } 37 public override IDeepCloneable Clone(Cloner cloner) { 38 return new TimeSpanValueConverter(this, cloner); 39 } 40 public TimeSpanValueConverter() : base() { } 32 41 33 42 #region IItemToSolutionMessageConverter Members
Note: See TracChangeset
for help on using the changeset viewer.