Ejemplo n.º 1
0
        public OutputPlug CreateOutputPlug(OutputPlug plug)
        {
            if (!Outputs.Any(p => p.Name == plug.Name))
            {
                plug.Owner = this;
                Outputs.Add(plug);
            }
            else
            {
                OutputPlug existing = Outputs.Find(p => p.Name == plug.Name);
                if (existing.Owner == null)
                {
                    existing.Owner = this;
                }
                return(existing);
            }

            return(plug);
        }
Ejemplo n.º 2
0
 public PortView GetCompatibleOutputPort(PortView input)
 {
     return(Outputs.Find((port) => port.IsCompatibleWith(input)));
 }
Ejemplo n.º 3
0
 public PortView GetOutputPort(string name)
 {
     return(Outputs.Find((port) => port.portName == name));
 }
Ejemplo n.º 4
0
 public Neuron GetOutput(string tag)
 {
     return(Outputs.Find(p => p.Tag == tag));
 }