public void BreakFlowPort(FlowOutput output)
 {
     if (output.LinkInput != null)
     {
         output.LinkInput = null;
     }
 }
        protected override void RegisterPorts()
        {
            condition = AddValueInput <bool>("Condition");
            trueOut   = AddFlowOutput("True");
            falseOut  = AddFlowOutput("False");

            AddFlowInput(FLOW_IN);
        }
Beispiel #3
0
        protected FlowOutput AddFlowOutput(string name)
        {
            FlowOutput output = new FlowOutput(this, name);

            if (flowOutputs == null)
            {
                flowOutputs = new List <FlowOutput>();
            }
            flowOutputs.Add(output);

            return(output);
        }
 public static void Bind(FlowOutput output, FlowInput input)
 {
     if (output != null)
     {
         if (output.LinkInput != null)
         {
             //output.Input.Output = null;
             output.LinkInput = null;
         }
     }
     //if (input != null)
     //{
     //    if (input.Output != null)
     //    {
     //        input.Output.Input = null;
     //        input.Output = null;
     //    }
     //}
     if (output != null && input != null)
     {
         output.LinkInput = input;
         //input.Output = output;
     }
 }
 protected override void RegisterPorts()
 {
     enterFlowOut = AddFlowOutput("Enter");
     exitFlowOut  = AddFlowOutput("Exit");
 }
 public FlowBinding(FlowOutput output, FlowInput input)
 {
     this.Output = output;
     this.Input  = input;
 }
Beispiel #7
0
 protected override void RegisterPorts()
 {
     flowOut = AddFlowOutput(FLOW_OUT);
 }
 protected override void RegisterPorts()
 {
     stopFlowOut = AddFlowOutput("Stop");
 }
 protected override void RegisterPorts()
 {
     startFlowOut = AddFlowOutput("Start");
 }