Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/06/15 11:59:12 (10 years ago)
Author:
jkarder
Message:

#2223: merged r11241, r11243, r11248, r11249, r11250, r11251, r11256, r11263, r11324, r11389, r11391, r11444, r11853, r11879, r11912 and r11913 into stable

Location:
stable
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs

    r11241 r11935  
    2929    string Label { get; set; }
    3030    double Weight { get; set; }
    31     IDeepCloneable Data { get; set; }
    3231
    3332    event EventHandler Changed; // generic event for when the label, weight or data were changed
    3433  }
    3534
    36   public interface IArc<T> : IArc where T : class,IItem {
    37     new IVertex<T> Source { get; }
    38     new IVertex<T> Target { get; }
     35  public interface IArc<T> : IArc where T : class,IDeepCloneable {
     36    T Data { get; set; }
    3937  }
    4038}
  • stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IDirectedGraph.cs

    r11241 r11935  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Common;
    2425
    2526namespace HeuristicLab.Core {
    2627  public interface IDirectedGraph : IItem {
    27     void Clear();
    28     void AddVertex(IVertex vertex);
    29     IArc AddArc(IVertex source, IVertex target);
    30     void AddArc(IArc arc);
    31     void RemoveVertex(IVertex vertex);
    32     void RemoveArc(IArc arc);
    3328    IEnumerable<IVertex> Vertices { get; }
    3429    IEnumerable<IArc> Arcs { get; }
    3530
    36     event EventHandler VertexAdded;
    37     event EventHandler VertexRemoved;
    38     event EventHandler ArcAdded;
    39     event EventHandler ArcRemoved;
     31    void Clear();
     32    void AddVertex(IVertex vertex);
     33    void RemoveVertex(IVertex vertex);
     34
     35    void AddVertices(IEnumerable<IVertex> vertexList);
     36    void RemoveVertices(IEnumerable<IVertex> vertexList);
     37
     38    IArc AddArc(IVertex source, IVertex target);
     39    void AddArc(IArc arc);
     40    void RemoveArc(IArc arc);
     41
     42    void AddArcs(IEnumerable<IArc> arcs);
     43    void RemoveArcs(IEnumerable<IArc> removeArcs);
     44
     45    event EventHandler<EventArgs<IVertex>> VertexAdded;
     46    event EventHandler<EventArgs<IVertex>> VertexRemoved;
     47    event EventHandler<EventArgs<IArc>> ArcAdded;
     48    event EventHandler<EventArgs<IArc>> ArcRemoved;
    4049  }
    4150}
  • stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IVertex.cs

    r11241 r11935  
    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.