- Timestamp:
- 10/29/15 10:08:31 (9 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable/ProgrammableNetworkItem.cs
r12944 r13077 20 20 #endregion 21 21 22 using HeuristicLab.Common;23 using HeuristicLab.Core;24 using HeuristicLab.Core.Networks;25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HeuristicLab.Scripting;27 using Microsoft.CSharp;28 22 using System; 29 23 using System.CodeDom.Compiler; … … 34 28 using System.Reflection; 35 29 using System.Text; 30 using HeuristicLab.Common; 31 using HeuristicLab.Core; 32 using HeuristicLab.Core.Networks; 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 using HeuristicLab.Scripting; 35 using Microsoft.CSharp; 36 36 37 37 namespace HeuristicLab.Networks.Programmable { -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable/ProgrammableNode.cs
r12944 r13077 20 20 #endregion 21 21 22 using System.Collections.Generic; 23 using System.Drawing; 24 using System.Linq; 25 using System.Threading; 22 26 using HeuristicLab.Common; 23 27 using HeuristicLab.Core; 24 28 using HeuristicLab.Core.Networks; 25 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using System.Collections.Generic;27 using System.Drawing;28 using System.Linq;29 using System.Threading;30 30 31 31 namespace HeuristicLab.Networks.Programmable { 32 32 [Item("ProgrammableNode", "Abstract base class for programmable nodes of a network.")] 33 33 [StorableClass] 34 public abstract class ProgrammableNode : ProgrammableNetworkItem, IProgrammableNode {34 public abstract class ProgrammableNode : ProgrammableNetworkItem, IProgrammableNode, IVisualizableNode { 35 35 public static new Image StaticItemImage { 36 36 get { return HeuristicLab.Common.Resources.VSImageLibrary.RadialChart; } … … 58 58 } 59 59 } 60 61 public string VisualName { get { return Name; } } 62 63 [Storable] 64 private INodeVisualProperties visualProperties; 65 public INodeVisualProperties VisualProperties { 66 get { 67 if (visualProperties == null) 68 visualProperties = new NodeVisualProperties(); 69 return visualProperties; 70 } 71 } 60 72 #endregion 61 73 … … 115 127 IKeyedItemCollection<string, IPort> INode.Ports { 116 128 get { return Ports; } 129 } 130 131 public string VisualName { get { return Context.VisualName; } } 132 133 public INodeVisualProperties VisualProperties { 134 get { return Context.VisualProperties; } 117 135 } 118 136 #endregion
Note: See TracChangeset
for help on using the changeset viewer.