- Timestamp:
- 02/18/11 11:32:25 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs
r5509 r5514 38 38 private const string RandomParameterName = "Random"; 39 39 private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree"; 40 private const string Symbolic ExpressionTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter";40 private const string SymbolicDataAnalysisTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter"; 41 41 private const string ProblemDataParameterName = "ProblemData"; 42 42 private const string UpperEstimationLimitParameterName = "UpperEstimationLimit"; … … 47 47 48 48 #region parameter properties 49 public I LookupParameter<IRandom> RandomParameter {50 get { return (I LookupParameter<IRandom>)Parameters[RandomParameterName]; }49 public IValueLookupParameter<IRandom> RandomParameter { 50 get { return (IValueLookupParameter<IRandom>)Parameters[RandomParameterName]; } 51 51 } 52 52 public ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { 53 53 get { return (ILookupParameter<ISymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; } 54 54 } 55 public I LookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicExpressionTreeInterpreterParameter {56 get { return (I LookupParameter<ISymbolicDataAnalysisTreeInterpreter>)Parameters[SymbolicExpressionTreeInterpreterParameterName]; }55 public IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicDataAnalysisTreeInterpreterParameter { 56 get { return (IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter>)Parameters[SymbolicDataAnalysisTreeInterpreterParameterName]; } 57 57 } 58 public I LookupParameter<T> ProblemDataParameter {59 get { return (I LookupParameter<T>)Parameters[ProblemDataParameterName]; }58 public IValueLookupParameter<T> ProblemDataParameter { 59 get { return (IValueLookupParameter<T>)Parameters[ProblemDataParameterName]; } 60 60 } 61 61 … … 108 108 public SymbolicDataAnalysisEvaluator() 109 109 : base() { 110 Parameters.Add(new LookupParameter<IRandom>(RandomParameterName, "The random generator to use."));111 Parameters.Add(new LookupParameter<ISymbolicDataAnalysisTreeInterpreter>(SymbolicExpressionTreeInterpreterParameterName, "The interpreter that should be used to calculate the output values of the symbolic data analysis tree."));112 Parameters.Add(new LookupParameter<SymbolicExpressionTree>(Symbolic ExpressionTreeInterpreterParameterName, "The symbolic data analysis solution encoded as a symbolic expression tree."));113 Parameters.Add(new LookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated."));110 Parameters.Add(new ValueLookupParameter<IRandom>(RandomParameterName, "The random generator to use.")); 111 Parameters.Add(new ValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter>(SymbolicDataAnalysisTreeInterpreterParameterName, "The interpreter that should be used to calculate the output values of the symbolic data analysis tree.")); 112 Parameters.Add(new LookupParameter<SymbolicExpressionTree>(SymbolicDataAnalysisTreeInterpreterParameterName, "The symbolic data analysis solution encoded as a symbolic expression tree.")); 113 Parameters.Add(new ValueLookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated.")); 114 114 Parameters.Add(new ValueLookupParameter<IntValue>(SamplesStartParameterName, "The start index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); 115 115 Parameters.Add(new ValueLookupParameter<IntValue>(SamplesEndParameterName, "The end index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisEvaluator.cs
r5509 r5514 25 25 public interface ISymbolicDataAnalysisEvaluator<T> : IDataAnalysisEvaluator<T> 26 26 where T : class, IDataAnalysisProblemData { 27 ILookupParameter< SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; }27 ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } 28 28 IValueLookupParameter<IntValue> SamplesStartParameter { get; } 29 29 IValueLookupParameter<IntValue> SamplesEndParameter { get; } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisGrammar.cs
r5495 r5514 23 23 24 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 25 public interface ISymbolicDataAnalysisGrammar : ISymbolicExpression Grammar {25 public interface ISymbolicDataAnalysisGrammar : ISymbolicExpressionTreeGrammar { 26 26 } 27 27 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisInterpreterOperator.cs
r5500 r5514 24 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 25 25 public interface ISymbolicDataAnalysisInterpreterOperator : IOperator { 26 IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> Interpreter;26 IValueLookupParameter<ISymbolicDataAnalysisTreeInterpreter> SymbolicDataAnalysisTreeInterpreterParameter { get; } 27 27 } 28 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisModel.cs
r5507 r5514 23 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 24 24 public interface ISymbolicDataAnalysisModel : IDataAnalysisModel { 25 ISymbolicExpressionTree SymbolicExpressionTree ;26 ISymbolicDataAnalysisTreeInterpreter Interpreter ;25 ISymbolicExpressionTree SymbolicExpressionTree { get; } 26 ISymbolicDataAnalysisTreeInterpreter Interpreter { get; } 27 27 } 28 28 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interfaces/ISymbolicDataAnalysisProblem.cs
r5495 r5514 21 21 22 22 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 23 public interface ISymbolicDataAnalysisProblem : IDataAnalysisProblem { 23 public interface ISymbolicDataAnalysisProblem<T> : IDataAnalysisProblem<T> 24 where T : class, IDataAnalysisProblemData { 24 25 ISymbolicDataAnalysisGrammar Grammar { get; } 25 new ISymbolicDataAnalysisEvaluator Evaluator { get; }26 new ISymbolicDataAnalysisSolutionCreator SolutionCreator { get; }26 new ISymbolicDataAnalysisEvaluator<T> Evaluator { get; } 27 new ISymbolicDataAnalysisSolutionCreator<T> SolutionCreator { get; } 27 28 } 28 29 }
Note: See TracChangeset
for help on using the changeset viewer.