Changeset 9194 for branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/MatchActionOperator.cs
- Timestamp:
- 01/28/13 17:54:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/MatchActionOperator.cs
r9089 r9194 34 34 get { return (ILookupParameter<BoolValue>)Parameters["MatchAction"]; } 35 35 } 36 public ILookupParameter<I Classifier> TargetMatchParameter {37 get { return (ILookupParameter<I Classifier>)Parameters["TargetMatchParameter"]; }36 public ILookupParameter<IAction> TargetMatchParameter { 37 get { return (ILookupParameter<IAction>)Parameters["TargetMatchParameter"]; } 38 38 } 39 39 public ILookupParameter<IClassifier> MatchParameter { … … 49 49 : base() { 50 50 Parameters.Add(new LookupParameter<BoolValue>("MatchAction", "True if the action matches.")); 51 Parameters.Add(new ValueLookupParameter<I Classifier>("TargetMatchParameter", "Target that has to be matched by the match parameter."));51 Parameters.Add(new ValueLookupParameter<IAction>("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 IAction target = TargetMatchParameter.ActualValue; 60 60 IClassifier match = MatchParameter.ActualValue; 61 61 MatchActionParameter.ActualValue = new BoolValue(match.MatchAction(target));
Note: See TracChangeset
for help on using the changeset viewer.