Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11913


Ignore:
Timestamp:
02/05/15 13:56:26 (10 years ago)
Author:
bburlacu
Message:

#2223: Forgot to commit interfaces.

Location:
trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs

    r11256 r11913  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324
    2425namespace HeuristicLab.Core {
     
    2829    string Label { get; set; }
    2930    double Weight { get; set; }
    30     object Data { get; set; }
    3131
    3232    event EventHandler Changed; // generic event for when the label, weight or data were changed
    3333  }
    3434
    35   public interface IArc<T> : IArc where T : class,IItem {
    36     new IVertex<T> Source { get; }
    37     new IVertex<T> Target { get; }
     35  public interface IArc<T> : IArc where T : class,IDeepCloneable {
     36    T Data { get; set; }
    3837  }
    3938}
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IDirectedGraph.cs

    r11391 r11913  
    2626namespace HeuristicLab.Core {
    2727  public interface IDirectedGraph : IItem {
     28    IEnumerable<IVertex> Vertices { get; }
     29    IEnumerable<IArc> Arcs { get; }
     30
    2831    void Clear();
    2932    void AddVertex(IVertex vertex);
     33    void RemoveVertex(IVertex vertex);
     34
    3035    void AddVertices(IEnumerable<IVertex> vertexList);
     36    void RemoveVertices(IEnumerable<IVertex> vertexList);
     37
    3138    IArc AddArc(IVertex source, IVertex target);
    3239    void AddArc(IArc arc);
    33     void RemoveVertices(IEnumerable<IVertex> vertexList);
    34     void RemoveVertex(IVertex vertex);
    3540    void RemoveArc(IArc arc);
    36     IEnumerable<IVertex> Vertices { get; }
    37     IEnumerable<IArc> Arcs { get; }
     41
     42    void AddArcs(IEnumerable<IArc> arcs);
     43    void RemoveArcs(IEnumerable<IArc> removeArcs);
    3844
    3945    event EventHandler<EventArgs<IVertex>> VertexAdded;
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IVertex.cs

    r11241 r11913  
    3636    double Weight { get; set; }
    3737
    38     IDeepCloneable Data { get; set; }
    39 
    4038    void AddArc(IArc arc);
    4139    void RemoveArc(IArc arc);
     
    4644  }
    4745
    48   public interface IVertex<T> : IVertex
    49   where T : class {
    50     new T Data { get; set; }
     46  public interface IVertex<T> : IVertex where T : class, IDeepCloneable {
     47    T Data { get; set; }
    5148  }
    5249}
Note: See TracChangeset for help on using the changeset viewer.