Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13772


Ignore:
Timestamp:
04/18/16 13:06:09 (9 years ago)
Author:
bburlacu
Message:

#2288: Add cloning constructors for the VariableNetworkNode and JunctionNetworkNode classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks/3.3/VariableInteractionNetwork.cs

    r13728 r13772  
    4040  [StorableClass]
    4141  public class VariableNetworkNode : Vertex<IDeepCloneable> {
     42    public VariableNetworkNode() { }
     43
     44    public VariableNetworkNode(VariableNetworkNode original, Cloner cloner) : base(original, cloner) { }
     45
     46    public override IDeepCloneable Clone(Cloner cloner) {
     47      return new VariableNetworkNode(this, cloner);
     48    }
    4249  }
    4350
     
    4552  [StorableClass]
    4653  public class JunctionNetworkNode : Vertex<IDeepCloneable> {
     54    public JunctionNetworkNode() { }
     55
     56    public JunctionNetworkNode(JunctionNetworkNode original, Cloner cloner) : base(original, cloner) { }
     57
     58    public override IDeepCloneable Clone(Cloner cloner) {
     59      return new JunctionNetworkNode(this, cloner);
     60    }
    4761  }
    4862}
Note: See TracChangeset for help on using the changeset viewer.