Changeset 9605 for branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Action/IntAction.cs
- Timestamp:
- 06/11/13 13:32:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Action/IntAction.cs
r9411 r9605 117 117 118 118 public void SetTo(string value) { 119 currentAction = int.Parse(value); 119 SetToPosition(int.Parse(value)); 120 } 121 122 public void SetTo(IGAssistNiche action) { 123 var castAction = action as IntAction; 124 if (castAction == null) throw new ArgumentException("action has to be IntAction"); 125 SetToPosition(castAction.CurrentAction); 120 126 } 121 127
Note: See TracChangeset
for help on using the changeset viewer.