Changeset 9194 for branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/MatchConditionOperator.cs
- Timestamp:
- 01/28/13 17:54:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/MatchConditionOperator.cs
r9110 r9194 34 34 get { return (ILookupParameter<BoolValue>)Parameters["MatchCondition"]; } 35 35 } 36 public ILookupParameter<I Classifier> TargetMatchParameter {37 get { return (ILookupParameter<I Classifier>)Parameters["TargetMatchParameter"]; }36 public ILookupParameter<IInput> TargetMatchParameter { 37 get { return (ILookupParameter<IInput>)Parameters["TargetMatchParameter"]; } 38 38 } 39 39 public ILookupParameter<IClassifier> MatchParameter { … … 49 49 : base() { 50 50 Parameters.Add(new LookupParameter<BoolValue>("MatchCondition", "True if the condition matches.")); 51 Parameters.Add(new ValueLookupParameter<I Classifier>("TargetMatchParameter", "Target that has to be matched by the match parameter."));51 Parameters.Add(new ValueLookupParameter<IInput>("TargetMatchParameter", "Target that has to be matched by the match parameter.")); 52 52 Parameters.Add(new ValueLookupParameter<IClassifier>("MatchParameter", "The matching encoding contained in each sub-scope which is used for selection.")); 53 53 } … … 57 57 58 58 public override IOperation Apply() { 59 I Classifiertarget = TargetMatchParameter.ActualValue;59 IInput target = TargetMatchParameter.ActualValue; 60 60 IClassifier match = MatchParameter.ActualValue; 61 MatchConditionParameter.ActualValue = new BoolValue(match.Match Condition(target));61 MatchConditionParameter.ActualValue = new BoolValue(match.MatchInput(target)); 62 62 return base.Apply(); 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.