Changeset 17687 for branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableCondition.cs
- Timestamp:
- 07/19/20 19:07:40 (4 years ago)
- Location:
- branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableCondition.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 30 [Storable Class]30 [StorableType("6DD62329-E3A5-4C3B-9B38-D57E62D61CCC")] 31 31 [Item("Variable Condition", "Represents a condition that tests a given variable against a specified threshold.")] 32 public sealed class VariableCondition : Symbol {32 public sealed class VariableCondition : Symbol, IVariableSymbol { 33 33 #region properties 34 34 [Storable] … … 100 100 allVariableNames.Clear(); 101 101 allVariableNames.AddRange(value); 102 VariableNames = value;103 102 } 104 103 } … … 149 148 OnChanged(EventArgs.Empty); 150 149 } 150 } 151 } 152 153 /// <summary> 154 /// Flag to indicate if the interpreter should ignore the slope parameter (introduced for representation of expression trees) 155 /// </summary> 156 [Storable] 157 private bool ignoreSlope; 158 public bool IgnoreSlope { 159 get { return ignoreSlope; } 160 set { ignoreSlope = value; } 161 } 162 163 public override bool Enabled { 164 get { 165 if (variableNames.Count == 0) return false; 166 return base.Enabled; 167 } 168 set { 169 if (variableNames.Count == 0) base.Enabled = false; 170 else base.Enabled = value; 151 171 } 152 172 } … … 172 192 173 193 [StorableConstructor] 174 private VariableCondition(bool deserializing) 175 : base(deserializing) { 194 private VariableCondition(StorableConstructorFlag _) : base(_) { 176 195 variableNames = new List<string>(); 177 196 allVariableNames = new List<string>();
Note: See TracChangeset
for help on using the changeset viewer.