Changeset 2216 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/ModelAnalyzerExporter.cs
- Timestamp:
- 07/30/09 19:41:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/ModelAnalyzerExporter.cs
r2212 r2216 21 21 22 22 using HeuristicLab.GP.Interfaces; 23 using System; 23 24 24 25 namespace HeuristicLab.GP.StructureIdentification { 25 public class ModelAnalyzerExporter : IFunctionTree Exporter, IFunctionTreeNameGenerator {26 public class ModelAnalyzerExporter : IFunctionTreeSerializer, IFunctionTreeNameGenerator { 26 27 #region IFunctionTreeExporter Members 27 28 … … 53 54 if(tree.SubTrees.Count > 0) result += ")"; 54 55 return result; 56 } 57 58 public IFunctionTree Import(string tree) { 59 throw new UnknownFunctionException(tree); 60 } 61 62 public bool TryImport(string tree, out IFunctionTree importedTree) { 63 try { 64 importedTree = Import(tree); 65 return true; 66 } 67 catch (UnknownFunctionException) { 68 importedTree = null; 69 return false; 70 } 55 71 } 56 72 … … 104 120 105 121 #endregion 122 123 106 124 } 107 125
Note: See TracChangeset
for help on using the changeset viewer.