- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/BoolConverter.cs
r14185 r14927 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 [Item("BoolConverter", "Converts a ValueTypeValue<bool>, ValueTypeArray<bool>, or ValueTypeMatrix<bool> and adds it to the SolutionMessage's BoolVars or BoolArrayVars. A matrix is encoded as array by concatenating all rows and setting length as the length of a row.")] 31 [Storable Class]31 [StorableType("cbb2f15b-e753-4e55-ae88-e593ca1f9599")] 32 32 public class BoolConverter : Item, IItemToSolutionMessageConverter { 33 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<bool>), typeof(ValueTypeArray<bool>), typeof(ValueTypeMatrix<bool>) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/DateTimeValueConverter.cs
r14185 r14927 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.ExternalEvaluation { 29 29 [Item("DateTimeValueConverter", "Converts a DateTimeValue and adds it to the SolutionMessage's StringVars. The format is yyyy-MM-dd HH:mm:sszzz, e.g. 2010-05-31 19:15:33+01:00.")] 30 [Storable Class]30 [StorableType("6ef21fd9-1dfb-4288-a7e4-601663cb8ca0")] 31 31 public class DateTimeValueConverter : Item, IItemToSolutionMessageConverter { 32 32 private static readonly Type[] itemTypes = new Type[] { typeof(DateTimeValue) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/DoubleConverter.cs
r14185 r14927 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 [Item("DoubleConverter", "Converts a ValueTypeValue<double>, ValueTypeArray<double>, or ValueTypeMatrix<double> and adds it to the SolutionMessage's DoubleVars or DoubleArrayVars. A matrix is encoded as array by concatenating all rows and setting length as the length of a row.")] 31 [Storable Class]31 [StorableType("d668fc8c-cc47-4d21-8a76-a904e17a1d49")] 32 32 public class DoubleConverter : Item, IItemToSolutionMessageConverter { 33 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<double>), typeof(ValueTypeArray<double>), typeof(ValueTypeMatrix<double>) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/IntegerConverter.cs
r14185 r14927 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Data; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 [Item("IntegerConverter", "Converts a ValueTypeValue<int>, ValueTypeArray<int>, or ValueTypeMatrix<int> and adds it to the SolutionMessage's IntegerVars or IntegerArrayVars. A matrix is encoded as array by concatenating all rows and setting length as the length of a row.")] 31 [Storable Class]31 [StorableType("0211c890-bab0-4be5-804d-d408ee523a31")] 32 32 public class IntegerConverter : Item, IItemToSolutionMessageConverter { 33 33 private static readonly Type[] itemTypes = new Type[] { typeof(ValueTypeValue<int>), typeof(ValueTypeArray<int>), typeof(ValueTypeMatrix<int>) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/StringConverter.cs
r14185 r14927 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.ExternalEvaluation { 29 29 [Item("StringConverter", "Converts a StringValue, StringArray, StringMatrix, IStringConvertibleValue, IStringConvertibleArray, or IStringConvertibleMatrix and adds it to the SolutionMessage's StringVars or StringArrayVars. A matrix is encoded as array by concatenating all rows and setting length as the length of a row.")] 30 [Storable Class]30 [StorableType("c82c3567-34db-49df-af44-fbbfede3d6ea")] 31 31 public class StringConverter : Item, IItemToSolutionMessageConverter { 32 32 private static readonly Type[] itemTypes = new Type[] { typeof(StringValue), typeof(StringArray), typeof(StringMatrix), typeof(IStringConvertibleValue), typeof(IStringConvertibleArray), typeof(IStringConvertibleMatrix) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Converters/TimeSpanValueConverter.cs
r14185 r14927 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.ExternalEvaluation { 29 29 [Item("TimeSpanValueConverter", "Converts a TimeSpanValue and adds it to the SolutionMessage's StringVars. The format is d.hh:mm:ss, e.g. 1113.10:55:00 (1113 days 10 hours, 55 minutes, 0 seconds).")] 30 [Storable Class]30 [StorableType("f3225d81-ed32-4c80-b501-b6ed1004ac60")] 31 31 public class TimeSpanValueConverter : Item, IItemToSolutionMessageConverter { 32 32 private static readonly Type[] itemTypes = new Type[] { typeof(TimeSpanValue) }; -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Drivers/EvaluationChannel.cs
r14185 r14927 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Problems.ExternalEvaluation { 28 28 [Item("EvaluationChannel", "Abstract base class for channels to be used in an external evaluation problem.")] 29 [Storable Class]29 [StorableType("c482fe83-47d8-4cd9-8270-71339961576b")] 30 30 public abstract class EvaluationChannel : NamedItem, IEvaluationChannel { 31 31 public override bool CanChangeName { get { return false; } } -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Drivers/EvaluationProcessChannel.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Problems.ExternalEvaluation { 31 31 [Item("EvaluationProcessChannel", "A channel that launches an external application in a new process and communicates with that process via stdin and stdout.")] 32 [Storable Class]32 [StorableType("1a8626d1-3e6f-49f0-99d6-083f6d88f07c")] 33 33 public class EvaluationProcessChannel : EvaluationChannel { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Drivers/EvaluationServiceClient.cs
r14185 r14927 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Problems.ExternalEvaluation { 32 32 [Item("EvaluationServiceClient", "An RPC client that evaluates a solution.")] 33 [Storable Class]33 [StorableType("99f4f039-b9f1-47fd-8eb2-5ceea57d9197")] 34 34 public class EvaluationServiceClient : ParameterizedNamedItem, IEvaluationServiceClient { 35 35 -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Drivers/EvaluationStreamChannel.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 [Item("EvaluationStreamChannel", "A channel that communicates via an input and an output stream.")] 31 [Storable Class]31 [StorableType("174e1468-0878-49ca-a3c4-bd3d30d814df")] 32 32 public class EvaluationStreamChannel : EvaluationChannel { 33 33 -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Drivers/EvaluationTCPChannel.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Problems.ExternalEvaluation { 31 31 [Item("EvaluationTCPChannel", "A channel that creates a TCP connection over a network.")] 32 [Storable Class]32 [StorableType("f9331c3f-44d8-46ac-99cd-5c432ccb9306")] 33 33 public class EvaluationTCPChannel : EvaluationChannel { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/EvaluationCache.cs
r14185 r14927 36 36 using HeuristicLab.Data; 37 37 using HeuristicLab.Parameters; 38 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;38 using HeuristicLab.Persistence; 39 39 40 40 namespace HeuristicLab.Problems.ExternalEvaluation { 41 41 42 42 [Item("EvaluationCache", "Cache for external evaluation values")] 43 [Storable Class]43 [StorableType("fccab88b-ca22-46ad-b086-5d47877cc8cb")] 44 44 public class EvaluationCache : ParameterizedNamedItem { 45 45 -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
r14877 r14927 32 32 using HeuristicLab.Optimization; 33 33 using HeuristicLab.Parameters; 34 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;34 using HeuristicLab.Persistence; 35 35 36 36 namespace HeuristicLab.Problems.ExternalEvaluation { 37 37 [Item("External Evaluation Problem (single-objective)", "A problem that is evaluated in a different process.")] 38 38 [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 100)] 39 [Storable Class]39 [StorableType("2f87216f-3877-4577-8a10-435cb16bbb8a")] 40 40 // BackwardsCompatibility3.3 41 41 // Rename class to SingleObjectiveExternalEvaluationProblem … … 158 158 try { 159 159 return client.Evaluate(message, GetQualityMessageExtensions()); 160 } 161 finally { 160 } finally { 162 161 lock (clientLock) { 163 162 activeClients.Remove(client); … … 174 173 try { 175 174 MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder); 176 } 177 catch (ArgumentException ex) { 175 } catch (ArgumentException ex) { 178 176 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 179 177 } -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r14877 r14927 31 31 using HeuristicLab.Optimization; 32 32 using HeuristicLab.Parameters; 33 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;33 using HeuristicLab.Persistence; 34 34 35 35 namespace HeuristicLab.Problems.ExternalEvaluation { 36 36 [Item("External Evaluation Problem (multi-objective)", "A multi-objective problem that is evaluated in a different process.")] 37 37 [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 200)] 38 [Storable Class]38 [StorableType("1fe3556f-ef0d-4443-a51b-4ec5f5d5a2bf")] 39 39 public class MultiObjectiveExternalEvaluationProblem : MultiObjectiveBasicProblem<IEncoding>, IExternalEvaluationProblem { 40 40 … … 155 155 try { 156 156 return client.Evaluate(message, GetQualityMessageExtensions()); 157 } 158 finally { 157 } finally { 159 158 lock (clientLock) { 160 159 activeClients.Remove(client); … … 171 170 try { 172 171 MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder); 173 } 174 catch (ArgumentException ex) { 172 } catch (ArgumentException ex) { 175 173 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 176 174 } -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/MultiObjectiveOptimizationSupportScript.cs
r14185 r14927 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Optimization; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 using HeuristicLab.Problems.ExternalEvaluation.Programmable; 27 27 28 28 namespace HeuristicLab.Problems.ExternalEvaluation { 29 29 [Item("ProblemDefinitionScript", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")] 30 [Storable Class]30 [StorableType("07da9156-b080-45a0-ba8b-fbc57d8d17cf")] 31 31 public sealed class MultiObjectiveOptimizationSupportScript : OptimizationSupportScript<IMultiObjectiveOptimizationSupport>, IMultiObjectiveOptimizationSupport { 32 32 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/OptimizationSupportScript.cs
r14185 r14927 24 24 using System.Reflection; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 using HeuristicLab.Scripting; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 [Storable Class]30 [StorableType("83604810-c01b-4a7d-9f2b-3bbe51bd5057")] 31 31 public abstract class OptimizationSupportScript<T> : Script 32 32 where T : class { -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/Programmable/SingleObjectiveOptimizationSupportScript.cs
r14185 r14927 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 using HeuristicLab.Problems.ExternalEvaluation.Programmable; 28 28 29 29 namespace HeuristicLab.Problems.ExternalEvaluation { 30 30 [Item("ProblemDefinitionScript", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")] 31 [Storable Class]31 [StorableType("b3772084-f7eb-4539-abe0-6b116048e192")] 32 32 public sealed class SingleObjectiveOptimizationSupportScript : OptimizationSupportScript<ISingleObjectiveOptimizationSupport>, ISingleObjectiveOptimizationSupport { 33 33 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/SolutionMessageBuilder.cs
r14185 r14927 26 26 using HeuristicLab.Common; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Problems.ExternalEvaluation { 31 31 [Item("SolutionMessageBuilder", "Holds and uses a number of converters to translate HeuristicLab objects into appropriate fields of a solution message.")] 32 [Storable Class]32 [StorableType("8ecf67de-fe65-43df-a95f-a8d9cdb45a28")] 33 33 public class SolutionMessageBuilder : NamedItem { 34 34 public override bool CanChangeName { get { return false; } }
Note: See TracChangeset
for help on using the changeset viewer.