Changeset 12504 for trunk/sources/HeuristicLab.Core/3.3/Attributes
- Timestamp:
- 06/25/15 10:30:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs
r12305 r12504 25 25 [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] 26 26 public sealed class CreatableAttribute : Attribute { 27 #region Predefined Categories 28 public static class Categories { 29 public const string Splitter = "###"; 30 31 public const string Algorithms = "Algorithms"; 32 public const string PopulationBasedAlgorithms = Algorithms + Splitter + "Population Based"; 33 public const string SingleSolutionAlgorithms = Algorithms + Splitter + "Single Solution"; 34 35 public const string Problems = "Problems"; 36 public const string CombinatorialProblems = Problems + Splitter + "Combinatorial"; 37 public const string GeneticProgrammingProblems = Problems + Splitter + "Genetic Programming"; 38 public const string ExternalEvaluationProblems = Problems + Splitter + "External Evaluation"; 39 40 public const string DataAnalysis = "Data Analysis"; 41 public const string DataAnalysisClassification = DataAnalysis + Splitter + "Classification"; 42 public const string DataAnalysisRegression = DataAnalysis + Splitter + "Regression"; 43 public const string DataAnalysisEnsembles = DataAnalysis + Splitter + "Ensembles"; 44 45 public const string TestingAndAnalysis = "Testing & Analysis"; 46 public const string TestingAndAnalysisOKB = TestingAndAnalysis + Splitter + "OKB"; 47 48 public const string Scripts = "5 - Scripts"; 49 } 50 #endregion 51 27 52 private string category; 28 53 public string Category { … … 43 68 Priority = int.MaxValue; 44 69 } 45 public CreatableAttribute( stringcategory)70 public CreatableAttribute(object category) 46 71 : this() { 47 Category = category;72 Category = (string)category; 48 73 } 49 74
Note: See TracChangeset
for help on using the changeset viewer.