- Timestamp:
- 05/02/13 11:26:06 (12 years ago)
- Location:
- branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Fragment.cs
r9083 r9416 27 27 [Item("Fragment", "Class that represents a tree fragment")] 28 28 [StorableClass] 29 public class Fragment : Item, IFragment { 30 public ISymbolicExpressionTreeNode Root { get; set; } 29 public class Fragment : Item, IFragment 30 { 31 [Storable] private ISymbolicExpressionTreeNode root; 32 public ISymbolicExpressionTreeNode Root { get { return root; } set { root = value; } } 31 33 private int length = -1; 32 34 public int Length { -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj
r9293 r9416 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath>..\..\..\..\ Trunk\sources\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 99 99 <Reference Include="HeuristicLab.Analysis-3.3"> 100 100 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 101 <Private>False</Private> 101 102 </Reference> 102 103 <Reference Include="HeuristicLab.Collections-3.3"> 103 104 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 105 <Private>False</Private> 104 106 </Reference> 105 107 <Reference Include="HeuristicLab.Common-3.3"> 106 108 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 109 <Private>False</Private> 107 110 </Reference> 108 111 <Reference Include="HeuristicLab.Common.Resources-3.3"> 109 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 113 <Private>False</Private> 110 114 </Reference> 111 115 <Reference Include="HeuristicLab.Core-3.3"> 112 116 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 117 <Private>False</Private> 113 118 </Reference> 114 119 <Reference Include="HeuristicLab.Data-3.3"> 115 120 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 121 <Private>False</Private> 116 122 </Reference> 117 123 <Reference Include="HeuristicLab.Operators-3.3"> 118 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 125 <Private>False</Private> 119 126 </Reference> 120 127 <Reference Include="HeuristicLab.Optimization-3.3"> 121 128 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 129 <Private>False</Private> 122 130 </Reference> 123 131 <Reference Include="HeuristicLab.Optimization.Operators-3.3"> 124 132 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 133 <Private>False</Private> 125 134 </Reference> 126 135 <Reference Include="HeuristicLab.Parameters-3.3"> 127 136 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 137 <Private>False</Private> 128 138 </Reference> 129 139 <Reference Include="HeuristicLab.Persistence-3.3"> 130 140 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 141 <Private>False</Private> 131 142 </Reference> 132 143 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 133 144 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 145 <Private>False</Private> 134 146 </Reference> 135 147 <Reference Include="HeuristicLab.Random-3.3"> 136 148 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 149 <Private>False</Private> 137 150 </Reference> 138 151 <Reference Include="System" /> … … 170 183 <Compile Include="Fragment.cs" /> 171 184 <Compile Include="Interfaces\IFragment.cs" /> 185 <Compile Include="Interfaces\ISymbolicExpressionTreeNodeSimilarityComparer.cs" /> 172 186 <Compile Include="Interfaces\Operators\ITracingSymbolicExpressionTreeOperator.cs" /> 173 187 <Compile Include="Manipulators\RemoveBranchManipulation.cs" /> 188 <Compile Include="SymbolicExpressionTreeEdit.cs" /> 174 189 <Compile Include="TracingSymbolicExpressionTreeOperator.cs" /> 175 190 <Compile Include="Creators\TracingSymbolicExpressionTreeCreator.cs" /> -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj.user
r9296 r9416 8 8 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> 9 9 <StartAction>Program</StartAction> 10 <StartProgram>C:\Users\bburlacu\Projects\HeuristicLab\ Trunk\sources\bin\HeuristicLab 3.3.exe</StartProgram>10 <StartProgram>C:\Users\bburlacu\Projects\HeuristicLab\trunk\sources\bin\HeuristicLab 3.3.exe</StartProgram> 11 11 <StartArguments>/start:Optimizer /hideStarter</StartArguments> 12 12 </PropertyGroup> -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNodeComparer.cs
r8557 r9416 1 1 using System.Collections.Generic; 2 using HeuristicLab.Core;3 2 4 3 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 5 public interface ISymbolicExpressionTreeNodeComparer : I EqualityComparer<ISymbolicExpressionTreeNode>, IItem{4 public interface ISymbolicExpressionTreeNodeComparer : IComparer<ISymbolicExpressionTreeNode> { 6 5 7 6 } -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ITracingSymbolicExpressionTreeOperator.cs
r8557 r9416 27 27 /// </summary> 28 28 public interface ITracingSymbolicExpressionTreeOperator : ISymbolicExpressionTreeOperator { 29 ValueParameter<ISymbolicExpressionTreeNode Comparer> SymbolicExpressionTreeNodeComparerParameter { get; }29 ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer> SymbolicExpressionTreeNodeComparerParameter { get; } 30 30 } 31 31 } -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/MultiSymbolicExpressionTreeManipulator.cs
r9083 r9416 53 53 get { return true; } 54 54 } 55 public ValueParameter<ISymbolicExpressionTreeNode Comparer> SymbolicExpressionTreeNodeComparerParameter {56 get { return (ValueParameter<ISymbolicExpressionTreeNode Comparer>)Parameters[SymbolicExpressionTreeNodeComparerParameterName]; }55 public ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer> SymbolicExpressionTreeNodeComparerParameter { 56 get { return (ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer>)Parameters[SymbolicExpressionTreeNodeComparerParameterName]; } 57 57 } 58 58 public ISymbolicExpressionTreeNodeComparer SymbolicExpressionTreeNodeComparer { … … 80 80 Parameters.Add(new ValueLookupParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, "The maximal length (number of nodes) of the symbolic expression tree.")); 81 81 Parameters.Add(new ValueLookupParameter<IntValue>(MaximumSymbolicExpressionTreeDepthParameterName, "The maximal depth of the symbolic expression tree (a tree with one node has depth = 0).")); 82 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNode Comparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription));82 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription)); 83 83 84 84 List<ISymbolicExpressionTreeManipulator> list = new List<ISymbolicExpressionTreeManipulator>(); … … 120 120 manipulator.MaximumSymbolicExpressionTreeLengthParameter.ActualName = MaximumSymbolicExpressionTreeLengthParameter.Name; 121 121 } 122 var comparers = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeNode Comparer>().ToList();122 var comparers = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeNodeSimilarityComparer>().ToList(); 123 123 if (comparers.Count > 0) 124 124 foreach (var manipulator in Operators.OfType<ITracingSymbolicExpressionTreeOperator>()) { -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Plugin.cs
r9293 r9416 23 23 24 24 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 25 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.92 46")]25 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.9296")] 26 26 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/TracingSymbolicExpressionTreeOperator.cs
r9237 r9416 56 56 get { return (LookupParameter<GeneticExchangeMapType>)Parameters[GlobalGeneticExchangeMapParameterName]; } 57 57 } 58 public ValueParameter<ISymbolicExpressionTreeNode Comparer> SymbolicExpressionTreeNodeComparerParameter {59 get { return (ValueParameter<ISymbolicExpressionTreeNode Comparer>)Parameters[SymbolicExpressionTreeNodeComparerParameterName]; }58 public ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer> SymbolicExpressionTreeNodeComparerParameter { 59 get { return (ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer>)Parameters[SymbolicExpressionTreeNodeComparerParameterName]; } 60 60 } 61 61 #endregion … … 68 68 Parameters.Add(new LookupParameter<GeneticExchangeMapType>(GlobalGeneticExchangeMapParameterName, "A global list of genetic exchange transactions.")); 69 69 if (!Parameters.ContainsKey(SymbolicExpressionTreeNodeComparerParameterName)) 70 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNode Comparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription));70 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription)); 71 71 } 72 72 … … 84 84 get { return GlobalGeneticExchangeMapParameter.ActualValue; } 85 85 } 86 public ISymbolicExpressionTreeNode Comparer SymbolicExpressionTreeNodeComparer {87 get { return (ISymbolicExpressionTreeNode Comparer)SymbolicExpressionTreeNodeComparerParameter.ActualValue; }86 public ISymbolicExpressionTreeNodeSimilarityComparer SymbolicExpressionTreeNodeComparer { 87 get { return (ISymbolicExpressionTreeNodeSimilarityComparer)SymbolicExpressionTreeNodeComparerParameter.ActualValue; } 88 88 } 89 89 #endregion … … 98 98 Parameters.Add(new LookupParameter<TraceMapType>(GlobalTraceMapParameterName, "A global cache containing tracing info.")); 99 99 Parameters.Add(new LookupParameter<GeneticExchangeMapType>(GlobalGeneticExchangeMapParameterName, "A global list of genetic exchange transactions.")); 100 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNode Comparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription));100 Parameters.Add(new ValueParameter<ISymbolicExpressionTreeNodeSimilarityComparer>(SymbolicExpressionTreeNodeComparerParameterName, SymbolicExpressionTreeNodeComparerParameterDescription)); 101 101 } 102 102
Note: See TracChangeset
for help on using the changeset viewer.