Changeset 14621 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief
- Timestamp:
- 01/31/17 09:30:07 (8 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpNetwork.cs
r14616 r14621 31 31 [Item("TtpNetwork", "An abstract base class for TTP optimization networks.")] 32 32 [StorableClass] 33 public abstract class TtpNetwork : Network {33 public abstract class TtpNetwork : Network, IOptimizer { 34 34 #region Constants 35 35 protected const string OrchestratorNodeName = "Orchestrator"; … … 104 104 if (algorithm == null) return; 105 105 106 algorithm.ExecutionStateChanged += OnExecutionStateChanged;107 algorithm.ExecutionTimeChanged += OnExecutionTimeChanged;108 algorithm.Prepared += OnPrepared;109 algorithm.Started += OnStarted;110 algorithm.Paused += OnPaused;111 algorithm.Stopped += OnStopped;112 algorithm.ExceptionOccurred += OnExceptionOccurred;106 algorithm.ExecutionStateChanged += (s, e) => OnExecutionStateChanged(); 107 algorithm.ExecutionTimeChanged += (s, e) => OnExecutionTimeChanged(); 108 algorithm.Prepared += (s, e) => OnPrepared(); 109 algorithm.Started += (s, e) => OnStarted(); 110 algorithm.Paused += (s, e) => OnPaused(); 111 algorithm.Stopped += (s, e) => OnStopped(); 112 algorithm.ExceptionOccurred += (s, e) => OnExceptionOccurred(e.Value); 113 113 } 114 114 … … 167 167 } 168 168 #endregion 169 170 protected void OnExecutionStateChanged(object sender, EventArgs e) { OnExecutionStateChanged(); }171 protected void OnExecutionTimeChanged(object sender, EventArgs e) { OnExecutionTimeChanged(); }172 protected void OnPrepared(object sender, EventArgs e) { OnPrepared(); }173 protected void OnStarted(object sender, EventArgs e) { OnStarted(); }174 protected void OnPaused(object sender, EventArgs e) { OnPaused(); }175 protected void OnStopped(object sender, EventArgs e) { OnStopped(); }176 protected void OnExceptionOccurred(object sender, EventArgs<Exception> e) { OnExceptionOccurred(e.Value); }177 169 } 178 170 } -
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpNetwork1.cs
r14616 r14621 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization;28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 28 … … 32 31 [Creatable("Optimization Networks")] 33 32 [StorableClass] 34 public sealed class TtpNetwork1 : TtpNetwork , IOptimizer{33 public sealed class TtpNetwork1 : TtpNetwork { 35 34 [StorableConstructor] 36 35 private TtpNetwork1(bool deserializing) : base(deserializing) { } -
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpNetwork2.cs
r14616 r14621 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization;28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 28 … … 32 31 [Creatable("Optimization Networks")] 33 32 [StorableClass] 34 public sealed class TtpNetwork2 : TtpNetwork , IOptimizer{33 public sealed class TtpNetwork2 : TtpNetwork { 35 34 [StorableConstructor] 36 35 private TtpNetwork2(bool deserializing) : base(deserializing) { } -
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpNetwork3.cs
r14616 r14621 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Optimization;28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 28 … … 32 31 [Creatable("Optimization Networks")] 33 32 [StorableClass] 34 public sealed class TtpNetwork3 : TtpNetwork , IOptimizer{33 public sealed class TtpNetwork3 : TtpNetwork { 35 34 [StorableConstructor] 36 35 private TtpNetwork3(bool deserializing) : base(deserializing) { } -
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode.cs
r14616 r14621 199 199 } 200 200 201 pr otectedvoid InstanceParameter_Value_ToStringChanged(object sender, EventArgs e) {201 private void InstanceParameter_Value_ToStringChanged(object sender, EventArgs e) { 202 202 string filePath = InstanceParameter.Value.Value; 203 203 TtpUtils.Import(filePath, out tspCoordinates, out distanceType,
Note: See TracChangeset
for help on using the changeset viewer.