Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/13 13:40:43 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Added visual extensions (dynamic JavaScript) which will be used to render additional result parameters specific to scenarios (e. g. create a graphical representation of a TSP).
  • Added relationship between jobs and experiments (otherwise, it's not possible to get the job's experiment).
  • Updated Admin page to allow removal/addition of visual extensions.
  • Added back-end logic to store/retrieve/delete visual extensions.
  • Added visual extension functionality to the JavaScript views/controllers (job.*.js).
  • Added tsp.js which is a visual extension for the "Genetic Algorithm - TSP" scenario. It adds a graphical representation of the TSP (just like the C# version does) to the results.
Location:
branches/OaaS/HeuristicLab.Services.Optimization.Controller/Interfaces
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/Interfaces/DAL.cs

    r9362 r9395  
    3030  }
    3131
     32  public interface IJobDao {
     33    bool Add(string username, Experiment experiment, string jobId);
     34    bool Delete(string username, string jobId);
     35    Experiment FindByJobId(string username, string jobId);
     36  }
     37
    3238  public interface IBlobDao {
    3339    bool Add(StringEntry entry);
     
    4147    bool DeleteById(string algorithmId);
    4248    string FindById(string algorithmId);
     49    bool Exists(string algorithmId);
    4350  }
    4451
     
    4855    IExperimentDao ExperimentDao { get; }
    4956    IVisualExtensionDao VisualExtensionDao { get; }
     57    IJobDao JobDao { get; }
    5058  }
    5159
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/Interfaces/IControllerService.cs

    r9362 r9395  
    6868
    6969    [OperationContract]
    70     string GetVisualExtension(string algorithmId);
     70    VisualExtension GetVisualExtension(string algorithmId);
    7171
    7272    [OperationContract]
     
    7575    [OperationContract]
    7676    bool DeleteVisualExtension(string algorithmId);
     77
     78    [OperationContract]
     79    bool ExistsVisualExtension(string algorithmId);
    7780  }
    7881}
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/Interfaces/IScenarioManager.cs

    r9362 r9395  
    3030
    3131    string GetVisualExtension(string algorithmId);
     32
     33    bool AddVisualExtension(string algorithmId, string script);
     34
     35    bool DeleteVisualExtension(string algorithmId);
     36
     37    bool ExistsVisualExtension(string algorithmId);
    3238  }
    3339}
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/Interfaces/Model/ControllerModel.cs

    r9362 r9395  
    467467      set { tasks = value; }
    468468    }
    469 
     469  }
     470
     471  [DataContract]
     472  public class VisualExtension {
     473    [DataMember]
     474    public string ScenarioId { get; set; }
     475
     476    [DataMember]
     477    public string ScenarioJs { get; set; }
    470478  }
    471479
     
    484492    public IList<Parameter> InputParameters { get; set; }
    485493
     494    [DataMember]
    486495    public string AlgorithmName { get; set; }
    487496  }
Note: See TracChangeset for help on using the changeset viewer.