- Timestamp:
- 05/30/10 22:31:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs
r3862 r3872 34 34 get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; } 35 35 } 36 public IValueLookupParameter<IE xternalEvaluationDriver> DriverParameter {37 get { return (IValueLookupParameter<IE xternalEvaluationDriver>)Parameters["Driver"]; }36 public IValueLookupParameter<IEvaluationServiceClient> ClientParameter { 37 get { return (IValueLookupParameter<IEvaluationServiceClient>)Parameters["Client"]; } 38 38 } 39 39 … … 41 41 : base() { 42 42 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the current solution.")); 43 Parameters.Add(new ValueLookupParameter<IE xternalEvaluationDriver>("Driver", "The driver to communicatewith the external process."));43 Parameters.Add(new ValueLookupParameter<IEvaluationServiceClient>("Client", "The client that communicates with the external process.")); 44 44 } 45 45 46 46 public override IOperation Apply() { 47 IE xternalEvaluationDriver driver = DriverParameter.ActualValue;47 IEvaluationServiceClient client = ClientParameter.ActualValue; 48 48 SolutionMessage.Builder messageBuilder = SolutionMessage.CreateBuilder(); 49 49 messageBuilder.SolutionId = 0; … … 60 60 } 61 61 } 62 QualityMessage answer = driver.Evaluate(messageBuilder.Build());62 QualityMessage answer = client.Evaluate(messageBuilder.Build()); 63 63 if (QualityParameter.ActualValue == null) 64 64 QualityParameter.ActualValue = new DoubleValue(answer.Quality);
Note: See TracChangeset
for help on using the changeset viewer.