Changeset 9090 for branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator
- Timestamp:
- 12/29/12 20:15:48 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3
-
Property
svn:ignore
set to
obj
Plugin.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Operator/CountNumberOfUniqueActions.cs
r9089 r9090 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 24 25 using HeuristicLab.Operators; 25 26 using HeuristicLab.Parameters; … … 37 38 get { return (IValueLookupParameter<IItemSet<IClassifier>>)Parameters["UniqueActions"]; } 38 39 } 40 public IValueLookupParameter<IntValue> NumberOfUniqueActionsParameter { 41 get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfUniqueActions"]; } 42 } 39 43 40 44 [StorableConstructor] … … 50 54 Parameters.Add(new ScopeTreeLookupParameter<IClassifier>("Classifiers")); 51 55 Parameters.Add(new ValueLookupParameter<IItemSet<IClassifier>>("UniqueActions")); 56 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfUniqueActions")); 52 57 } 58 53 59 public override IOperation Apply() { 54 60 ItemSet<IClassifier> actions = new ItemSet<IClassifier>(); … … 56 62 actions.Add(classifier.Action); 57 63 } 58 UniqueActionsParameter.Value = actions; 64 UniqueActionsParameter.ActualValue = actions; 65 NumberOfUniqueActionsParameter.ActualValue = new IntValue(actions.Count); 59 66 return base.Apply(); 60 67 }
Note: See TracChangeset
for help on using the changeset viewer.