Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/08 10:48:49 (15 years ago)
Author:
gkronber
Message:

Added basic design for ProblemView #419 (Refactor CEDMA plugins)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/DataSet.cs

    r988 r992  
    3030
    3131namespace HeuristicLab.CEDMA.Core {
    32   public class DataSet {
     32  public class DataSet : IViewable {
    3333    public IStore Store { get; set; }
    3434
     
    5151      : base() {
    5252      guid = Guid.NewGuid();
     53      name = "Data set";
    5354      problem = new Problem();
    5455    }
     
    5960      guid = new Guid(dataSetEntity.Uri.Remove(0, Ontology.CedmaNameSpace.Length));
    6061      IList<Statement> names = store.Select(new Statement(dataSetEntity, Ontology.PredicateName, Ontology.AnyEntity));
    61       if (names.Count > 0) name = (string)((Literal)names[0].Property).Value;
     62      if(names.Count > 0) name = (string)((Literal)names[0].Property).Value;
    6263      else name = guid.ToString();
    6364    }
    6465
    6566    public void Activate() {
    66       Entity myEntity = new Entity (Ontology.CedmaNameSpace + Guid);
     67      Entity myEntity = new Entity(Ontology.CedmaNameSpace + Guid);
    6768      Store.Add(new Statement(myEntity, Ontology.PredicateInstanceOf, Ontology.TypeDataSet));
    6869      Store.Add(new Statement(myEntity, Ontology.PredicateSerializedData, new Literal(PersistenceManager.SaveToGZip(problem))));
Note: See TracChangeset for help on using the changeset viewer.