- Timestamp:
- 03/05/09 20:08:00 (16 years ago)
- Location:
- branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/HeuristicLab.CEDMA.Core.csproj
r1109 r1266 107 107 </Compile> 108 108 <Compile Include="Properties\AssemblyInfo.cs" /> 109 <Compile Include="ProblemInjector.cs" />110 109 <Compile Include="Results.cs" /> 111 110 </ItemGroup> -
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/Problem.cs
r1215 r1266 104 104 get { return autoRegressive; } 105 105 set { autoRegressive = value; } 106 } 107 108 private int minTimeOffset; 109 public int MinTimeOffset { 110 get { return minTimeOffset; } 111 set { minTimeOffset = value; } 112 } 113 114 private int maxTimeOffset; 115 public int MaxTimeOffset { 116 get { return maxTimeOffset; } 117 set { maxTimeOffset = value; } 106 118 } 107 119 … … 147 159 XmlAttribute autoRegressiveAttr = document.CreateAttribute("AutoRegressive"); 148 160 autoRegressiveAttr.Value = AutoRegressive.ToString(); 161 XmlAttribute minTimeOffsetAttr = document.CreateAttribute("MinTimeOffset"); 162 minTimeOffsetAttr.Value = MinTimeOffset.ToString(); 163 XmlAttribute maxTimeOffsetAttr = document.CreateAttribute("MaxTimeOffset"); 164 maxTimeOffsetAttr.Value = MaxTimeOffset.ToString(); 149 165 150 166 node.Attributes.Append(trainingSamplesStartAttr); … … 156 172 node.Attributes.Append(learningTaskAttr); 157 173 node.Attributes.Append(autoRegressiveAttr); 174 node.Attributes.Append(minTimeOffsetAttr); 175 node.Attributes.Append(maxTimeOffsetAttr); 158 176 159 177 XmlElement targetVariablesElement = document.CreateElement("AllowedTargetVariables"); … … 177 195 LearningTask = (LearningTask)Enum.Parse(typeof(LearningTask), node.Attributes["LearningTask"].Value); 178 196 AutoRegressive = bool.Parse(node.Attributes["AutoRegressive"].Value); 197 if (node.Attributes["MinTimeOffset"] != null) 198 MinTimeOffset = XmlConvert.ToInt32(node.Attributes["MinTimeOffset"].Value); 199 else MinTimeOffset = 0; 200 if (node.Attributes["MaxTimeOffset"] != null) 201 MaxTimeOffset = XmlConvert.ToInt32(node.Attributes["MaxTimeOffset"].Value); 202 else MaxTimeOffset = 0; 203 179 204 allowedTargetVariables.Clear(); 180 205 foreach (string tok in node.SelectSingleNode("AllowedTargetVariables").InnerText.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries))
Note: See TracChangeset
for help on using the changeset viewer.