Changeset 11935 for stable/HeuristicLab.Core/3.3/Interfaces
- Timestamp:
- 02/06/15 11:59:12 (10 years ago)
- Location:
- stable
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11241,11248-11251,11256,11263,11324,11389,11391,11444,11879,11912-11913
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs
r11241 r11935 29 29 string Label { get; set; } 30 30 double Weight { get; set; } 31 IDeepCloneable Data { get; set; }32 31 33 32 event EventHandler Changed; // generic event for when the label, weight or data were changed 34 33 } 35 34 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; } 39 37 } 40 38 } -
stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IDirectedGraph.cs
r11241 r11935 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Common; 24 25 25 26 namespace HeuristicLab.Core { 26 27 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);33 28 IEnumerable<IVertex> Vertices { get; } 34 29 IEnumerable<IArc> Arcs { get; } 35 30 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; 40 49 } 41 50 } -
stable/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IVertex.cs
r11241 r11935 36 36 double Weight { get; set; } 37 37 38 IDeepCloneable Data { get; set; }39 40 38 void AddArc(IArc arc); 41 39 void RemoveArc(IArc arc); … … 46 44 } 47 45 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; } 51 48 } 52 49 }
Note: See TracChangeset
for help on using the changeset viewer.