Ejemplo n.º 1
0
 public void Initialize(INode node, PortInfo info)
 {
     Node = node;
     Io   = info.Io;
     Name = info.Field.Name;
     Id   = RedOwlHash.GetHashId($"{Node.Id}.{Name}.{Io}");
 }
Ejemplo n.º 2
0
 internal DataPort(IDataPort symmetrical)
 {
     Node = symmetrical.Node;
     Io   = symmetrical.Io.IsOutput() ? PortIO.In : PortIO.Out;
     Name = symmetrical.Name;
     Id   = RedOwlHash.GetHashId($"{Node.Id}.{Name}.{Io}");
 }
Ejemplo n.º 3
0
 internal FlowPort(IFlowPort symmetrical)
 {
     Node             = symmetrical.Node;
     Io               = symmetrical.Io.IsOutput() ? PortIO.In : PortIO.Out;
     Name             = symmetrical.Name;
     Id               = RedOwlHash.GetHashId($"{Node.Id}.{Name}.{Io}");
     SerialSuccession = (flow) => symmetrical;
 }