Beispiel #1
0
 public Link(LinkIdentifier id, NodeIdentifier source, NodeIdentifier sink, LinkAttributes attributes, ImmutableList <PacketIdentifier> content)
 {
     Id         = id ?? throw new ArgumentNullException(nameof(id));
     Source     = source ?? throw new ArgumentNullException(nameof(source));
     Sink       = sink ?? throw new ArgumentNullException(nameof(sink));
     Attributes = attributes ?? throw new ArgumentNullException(nameof(attributes));
     Content    = content ?? throw new ArgumentNullException(nameof(content));
 }
Beispiel #2
0
 public LinkNodes(NodeIdentifier source, PortDirection sourcePort, NodeIdentifier sink, PortDirection sinkPort, LinkAttributes attributes)
 {
     Source     = source ?? throw new System.ArgumentNullException(nameof(source));
     SourcePort = sourcePort;
     Sink       = sink ?? throw new System.ArgumentNullException(nameof(sink));
     SinkPort   = sinkPort;
     Attributes = attributes;
 }