- Timestamp:
- 11/10/14 01:42:42 (10 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3
- Files:
-
- 11 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/ClassDiagram.cd
r11527 r11528 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <ClassDiagram MajorVersion="1" MinorVersion="1"> 3 <Class Name="HeuristicLab.Core.Networks.Entity" Collapsed="true">4 <Position X="7.75" Y="0.5" Width="1.5" />5 <TypeIdentifier>6 <HashCode>AAAiAACAAAAAQAJAAAAEQQAAAAAAQAAAAAAAAAAEAEQ=</HashCode>7 <FileName>Core.Networks\Entity.cs</FileName>8 </TypeIdentifier>9 <Lollipop Position="0.2" />10 </Class>11 3 <Class Name="HeuristicLab.Core.Networks.GenericNode" Collapsed="true"> 12 4 <Position X="1" Y="3.5" Width="1.5" /> … … 63 55 <Lollipop Position="0.2" /> 64 56 </Class> 57 <Class Name="HeuristicLab.Core.Networks.NetworkItem" Collapsed="true"> 58 <Position X="7.75" Y="0.5" Width="1.5" /> 59 <TypeIdentifier> 60 <HashCode>AAAiAACAAAAAQAJAAAAEQQAAAAAAQAAAAAAAAAAEAEQ=</HashCode> 61 <FileName>Core.Networks\NetworkItem.cs</FileName> 62 </TypeIdentifier> 63 <Lollipop Position="0.2" /> 64 </Class> 65 65 <Class Name="HeuristicLab.Core.Networks.Node" Collapsed="true"> 66 66 <Position X="4.5" Y="2" Width="1.5" /> … … 170 170 </Class> 171 171 <Interface Name="HeuristicLab.Core.Networks.IConnectedPort" Collapsed="true"> 172 <Position X=" 10" Y="11.75" Width="1.5" />172 <Position X="7.75" Y="11.75" Width="1.5" /> 173 173 <TypeIdentifier> 174 174 <HashCode>AAAAAAAAAAAAAAQAAAAAAAAAACAAAAAAAAAAAAAAAAA=</HashCode> … … 176 176 </TypeIdentifier> 177 177 </Interface> 178 <Interface Name="HeuristicLab.Core.Networks.IEntity" Collapsed="true">179 <Position X="7.75" Y="7.5" Width="1.5" />180 <TypeIdentifier>181 <HashCode>AAAAAAAAAAAAAAIAAAAEQAAAAAAAAAAAAAAAAAAAAAQ=</HashCode>182 <FileName>Core.Networks\IEntity.cs</FileName>183 </TypeIdentifier>184 </Interface>185 178 <Interface Name="HeuristicLab.Core.Networks.IGenericNode" Collapsed="true"> 186 <Position X=" 5.5" Y="10.5" Width="1.5" />179 <Position X="3.25" Y="10.5" Width="1.5" /> 187 180 <TypeIdentifier> 188 181 <HashCode>AAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> … … 191 184 </Interface> 192 185 <Interface Name="HeuristicLab.Core.Networks.IGenericPort" Collapsed="true"> 193 <Position X="1 3.5" Y="11.75" Width="1.5" />186 <Position X="11.25" Y="11.75" Width="1.5" /> 194 187 <TypeIdentifier> 195 188 <HashCode>ARAAMAAAQAAAACABACAAAAAAAgQAAAAAAAAACQAAAAQ=</HashCode> … … 219 212 </Interface> 220 213 <Interface Name="HeuristicLab.Core.Networks.INetwork" Collapsed="true"> 221 <Position X=" 3.25" Y="10.5" Width="1.5" />214 <Position X="1" Y="10.5" Width="1.5" /> 222 215 <TypeIdentifier> 223 216 <HashCode>AAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> … … 225 218 </TypeIdentifier> 226 219 </Interface> 220 <Interface Name="HeuristicLab.Core.Networks.INetworkItem" Collapsed="true"> 221 <Position X="7.75" Y="7.5" Width="1.5" /> 222 <TypeIdentifier> 223 <HashCode>AAAAAAAAAAAAAAIAAAAEQAAAAAAAAAAAAAAAAAAAAAQ=</HashCode> 224 <FileName>Core.Networks\INetworkItem.cs</FileName> 225 </TypeIdentifier> 226 </Interface> 227 227 <Interface Name="HeuristicLab.Core.Networks.INode" Collapsed="true"> 228 <Position X=" 5.5" Y="9" Width="1.5" />228 <Position X="3.25" Y="9" Width="1.5" /> 229 229 <TypeIdentifier> 230 230 <HashCode>AAAAAAAAAAAAAAAABAAAQAAAAAAAAAAAAAAAAAAAAAA=</HashCode> … … 233 233 </Interface> 234 234 <Interface Name="HeuristicLab.Core.Networks.IParameterizedPort" Collapsed="true"> 235 <Position X="1 2.25" Y="10.5" Width="1.5" />235 <Position X="10" Y="10.5" Width="1.5" /> 236 236 <TypeIdentifier> 237 237 <HashCode>AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAA=</HashCode> … … 240 240 </Interface> 241 241 <Interface Name="HeuristicLab.Core.Networks.IPort" Collapsed="true"> 242 <Position X="1 2.25" Y="9" Width="1.5" />242 <Position X="10" Y="9" Width="1.5" /> 243 243 <TypeIdentifier> 244 244 <HashCode>AAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAA=</HashCode> … … 247 247 </Interface> 248 248 <Interface Name="HeuristicLab.Core.Networks.IPortParameter" Collapsed="true"> 249 <Position X="1 " Y="9" Width="1.5" />249 <Position X="14.5" Y="9" Width="1.5" /> 250 250 <TypeIdentifier> 251 251 <HashCode>AAAAAAAAAAIAQAAAAAAAQAAAAADAAAAAEQAAAAAAAAA=</HashCode> … … 254 254 </Interface> 255 255 <Interface Name="HeuristicLab.Core.Networks.IPortParameter<T>" Collapsed="true"> 256 <Position X="1 " Y="10.5" Width="1.5" />256 <Position X="14.5" Y="10.5" Width="1.5" /> 257 257 <TypeIdentifier> 258 258 <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAEAAAAAAAAAA=</HashCode> … … 268 268 </Interface> 269 269 <Interface Name="HeuristicLab.Optimization.Networks.IAlgorithmNode" Collapsed="true"> 270 <Position X=" 7.75" Y="10.5" Width="1.5" />270 <Position X="5.5" Y="10.5" Width="1.5" /> 271 271 <TypeIdentifier> 272 272 <HashCode>AAAAAAAAAAAAEAAABAAAQAAAAAAAAAAAAAAAAAQAAAA=</HashCode> … … 275 275 </Interface> 276 276 <Interface Name="HeuristicLab.Optimization.Networks.IConfigurationPort" Collapsed="true"> 277 <Position X="1 2.25" Y="13.25" Width="1.5" />277 <Position X="10" Y="13.25" Width="1.5" /> 278 278 <TypeIdentifier> 279 279 <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> … … 282 282 </Interface> 283 283 <Interface Name="HeuristicLab.Optimization.Networks.IExecutionPort" Collapsed="true"> 284 <Position X="1 4.5" Y="13.25" Width="1.5" />284 <Position X="12.25" Y="13.25" Width="1.5" /> 285 285 <TypeIdentifier> 286 286 <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/GenericPort.cs
r11526 r11528 161 161 // collect output parameters from local port 162 162 message.Values.AddRange( 163 Parameters .164 Where(p => p.Type.HasFlag(PortParameterType.Output)).165 Select(p => p.CreateMessageValue())163 Parameters 164 .Where(p => p.Type.HasFlag(PortParameterType.Output)) 165 .Select(p => p.CreateMessageValue()) 166 166 ); 167 167 … … 169 169 if (ConnectedPort != null) { 170 170 message.Values.AddRange( 171 ConnectedPort.Parameters .172 Where(p => p.Type.HasFlag(PortParameterType.Input) && !message.Values.ContainsKey(p.Name)).173 Select(p => p.CreateMessageValue())171 ConnectedPort.Parameters 172 .Where(p => p.Type.HasFlag(PortParameterType.Input) && !message.Values.ContainsKey(p.Name)) 173 .Select(p => p.CreateMessageValue()) 174 174 ); 175 175 } … … 178 178 if (ConnectedPort != null) { 179 179 message.Values.AddRange( 180 ConnectedPort.Parameters .181 Where(p => p.Type.HasFlag(PortParameterType.Output) && !message.Values.ContainsKey(p.Name)).182 Select(p => p.CreateMessageValue())180 ConnectedPort.Parameters 181 .Where(p => p.Type.HasFlag(PortParameterType.Output) && !message.Values.ContainsKey(p.Name)) 182 .Select(p => p.CreateMessageValue()) 183 183 ); 184 184 } … … 186 186 // collect remaining input parameters from local port 187 187 message.Values.AddRange( 188 Parameters .189 Where(p => p.Type.HasFlag(PortParameterType.Input) && !message.Values.ContainsKey(p.Name)).190 Select(p => p.CreateMessageValue())188 Parameters 189 .Where(p => p.Type.HasFlag(PortParameterType.Input) && !message.Values.ContainsKey(p.Name)) 190 .Select(p => p.CreateMessageValue()) 191 191 ); 192 192 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/INetworkItem.cs
r11527 r11528 24 24 25 25 namespace HeuristicLab.Core.Networks { 26 public interface I Entity: INamedItem {27 I EntityParent { get; }28 IEnumerable<I Entity> Children { get; }26 public interface INetworkItem : INamedItem { 27 INetworkItem Parent { get; } 28 IEnumerable<INetworkItem> Children { get; } 29 29 string Path { get; } 30 30 event EventHandler PathChanged; -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/INode.cs
r11526 r11528 21 21 22 22 namespace HeuristicLab.Core.Networks { 23 public interface INode : I Entity{23 public interface INode : INetworkItem { 24 24 new INetwork Parent { get; set; } 25 25 IKeyedItemCollection<string, IPort> Ports { get; } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/IPort.cs
r11526 r11528 21 21 22 22 namespace HeuristicLab.Core.Networks { 23 public interface IPort : I Entity{23 public interface IPort : INetworkItem { 24 24 new INode Parent { get; set; } 25 25 } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/IPortParameter.cs
r11526 r11528 23 23 24 24 namespace HeuristicLab.Core.Networks { 25 public interface IPortParameter : I Entity{25 public interface IPortParameter : INetworkItem { 26 26 new IPort Parent { get; set; } 27 27 Type DataType { get; } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/Network.cs
r11526 r11528 37 37 } 38 38 39 public override IEnumerable<I Entity> Children {40 get { return base.Children.Concat(Nodes.AsEnumerable<I Entity>()); }39 public override IEnumerable<INetworkItem> Children { 40 get { return base.Children.Concat(Nodes.AsEnumerable<INetworkItem>()); } 41 41 } 42 42 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/NetworkItem.cs
r11527 r11528 28 28 29 29 namespace HeuristicLab.Core.Networks { 30 [Item(" Entity", "Abstract base class for entities of an optimizationnetwork.")]30 [Item("NetworkItem", "Abstract base class for items of a network.")] 31 31 [StorableClass] 32 public abstract class Entity : NamedItem, IEntity{32 public abstract class NetworkItem : NamedItem, INetworkItem { 33 33 public static readonly string PathSeparator = " => "; 34 34 public static new Image StaticItemImage { … … 36 36 } 37 37 38 private I Entityparent;39 public I EntityParent {38 private INetworkItem parent; 39 public INetworkItem Parent { 40 40 get { return parent; } 41 41 protected set { … … 48 48 } 49 49 } 50 public virtual IEnumerable<I Entity> Children {51 get { return Enumerable.Empty<I Entity>(); }50 public virtual IEnumerable<INetworkItem> Children { 51 get { return Enumerable.Empty<INetworkItem>(); } 52 52 } 53 53 public string Path { … … 58 58 59 59 [StorableConstructor] 60 protected Entity(bool deserializing) : base(deserializing) { }61 protected Entity(Entityoriginal, Cloner cloner) : base(original, cloner) { }62 protected Entity() : base("Entity") { }63 protected Entity(string name) : base(name) { }64 protected Entity(string name, string description) : base(name, description) { }60 protected NetworkItem(bool deserializing) : base(deserializing) { } 61 protected NetworkItem(NetworkItem original, Cloner cloner) : base(original, cloner) { } 62 protected NetworkItem() : base("NetworkItem") { } 63 protected NetworkItem(string name) : base(name) { } 64 protected NetworkItem(string name, string description) : base(name, description) { } 65 65 66 66 protected override void OnNameChanging(CancelEventArgs<string> e) { -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/Node.cs
r11526 r11528 29 29 [Item("Node", "A node of an optimization network.")] 30 30 [StorableClass] 31 public class Node : Entity, INode {31 public class Node : NetworkItem, INode { 32 32 public static new Image StaticItemImage { 33 33 get { return HeuristicLab.Common.Resources.VSImageLibrary.RadialChart; } … … 41 41 } 42 42 } 43 public override IEnumerable<I Entity> Children {44 get { return base.Children.Concat(Ports.AsEnumerable<I Entity>()); }43 public override IEnumerable<INetworkItem> Children { 44 get { return base.Children.Concat(Ports.AsEnumerable<INetworkItem>()); } 45 45 } 46 46 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/ParameterizedPort.cs
r11526 r11528 30 30 [StorableClass] 31 31 public abstract class ParameterizedPort : Port, IParameterizedPort { 32 public override IEnumerable<I Entity> Children {33 get { return base.Children.Concat(Parameters.AsEnumerable<I Entity>()); }32 public override IEnumerable<INetworkItem> Children { 33 get { return base.Children.Concat(Parameters.AsEnumerable<INetworkItem>()); } 34 34 } 35 35 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/Port.cs
r11526 r11528 27 27 [Item("Port", "Abstract base class for ports of an optimization network node.")] 28 28 [StorableClass] 29 public abstract class Port : Entity, IPort {29 public abstract class Port : NetworkItem, IPort { 30 30 public static new Image StaticItemImage { 31 31 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Core.Networks/PortParameter.cs
r11526 r11528 28 28 [Item("PortParameter", "A parameter of a port.")] 29 29 [StorableClass] 30 public class PortParameter<T> : Entity, IPortParameter<T> where T : class, IItem {30 public class PortParameter<T> : NetworkItem, IPortParameter<T> where T : class, IItem { 31 31 public static new Image StaticItemImage { 32 32 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/HeuristicLab.Optimization.Networks-3.3.csproj
r11526 r11528 90 90 </ItemGroup> 91 91 <ItemGroup> 92 <Compile Include="Core.Networks\Entity.cs" />93 92 <Compile Include="Core.Networks\GenericNode.cs" /> 94 93 <Compile Include="Core.Networks\GenericPort.cs" /> 95 94 <Compile Include="Core.Networks\IConnectedPort.cs" /> 96 <Compile Include="Core.Networks\IEntity.cs" />97 95 <Compile Include="Core.Networks\IGenericNode.cs" /> 98 96 <Compile Include="Core.Networks\IGenericPort.cs" /> … … 100 98 <Compile Include="Core.Networks\IMessageValue.cs" /> 101 99 <Compile Include="Core.Networks\INetwork.cs" /> 100 <Compile Include="Core.Networks\INetworkItem.cs" /> 102 101 <Compile Include="Core.Networks\INode.cs" /> 103 102 <Compile Include="Core.Networks\IParameterizedPort.cs" /> … … 109 108 <Compile Include="Core.Networks\MessageValueCollection.cs" /> 110 109 <Compile Include="Core.Networks\Network.cs" /> 110 <Compile Include="Core.Networks\NetworkItem.cs" /> 111 111 <Compile Include="Core.Networks\Node.cs" /> 112 112 <Compile Include="Core.Networks\NodeCollection.cs" />
Note: See TracChangeset
for help on using the changeset viewer.