protected override void SetupInterfaces()
        {
            Input.AddPort(new InPort()
            {
                Name                 = "First",
                Description          = "The string to output to the console",
                Types                = new string[] { "Text" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });
            Input.AddPort(new InPort()
            {
                Name                 = "Second",
                Description          = "The string to output to the console",
                Types                = new string[] { "Text" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });

            Output.AddPort(new OutPort()
            {
                Name                 = "Out",
                Description          = "The combination of the two inputed strings",
                Types                = new string[] { "Text" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
        protected override void SetupInterfaces()
        {
            ButtonPort = Input.AddPort(new InPort()
            {
                Name                 = "Button",
                Description          = "The button to be monitored",
                Types                = new string[] { "Button Controller" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });
            ButtonEventsPort = Input.AddPort(new InPort()
            {
                Name                 = "ButtonEvents",
                Description          = "This port receives events from the subscribed button",
                Types                = new string[] { "Kick" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                Hidden               = true,
            });

            OnPressPort = Output.AddPort(new OutPort()
            {
                Name                 = "OnPress",
                Description          = "Sends a kick when the button is pressed",
                Types                = new string[] { "Kick" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
示例#3
0
        protected override void SetupInterfaces()
        {
            ObjectPort = Input.AddPort(new InPort()
            {
                Name                 = "Object",
                Description          = "The object to send",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                RememberOnlyLatest   = true,
            });
            SendPort = Input.AddPort(new InPort()
            {
                Name                 = "Send",
                Description          = "Upon receiving anything on this port, the object is sent on",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });

            OutPort = Output.AddPort(new OutPort()
            {
                Name                 = "Out",
                Description          = "The sent object",
                Types                = new string[] { "All" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
示例#4
0
        protected override void SetupInterfaces()
        {
            Input.AddPort(new InPort()
            {
                Name                 = "Delimiter",
                Description          = "The delimiter to use to separate the string",
                Types                = new string[] { "Text" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });
            Input.AddPort(new InPort()
            {
                Name                 = "String",
                Description          = "The string to split",
                Types                = new string[] { "Text" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });

            Output.AddPort(new OutPort()
            {
                Name                 = "Out",
                Description          = "The combination of the two inputed strings",
                Types                = new string[] { "Text" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
        protected override void SetupInterfaces()
        {
            DoorPort = Input.AddPort(new InPort()
            {
                Name                 = "Door",
                Description          = "The controller of the door to be used",
                Types                = new string[] { "Door Controller" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });
            TogglePort = Input.AddPort(new InPort()
            {
                Name                 = "Toggle",
                Description          = "On receiving any input to this port, the door's state will be toggled",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });
            DoorEventsPort = Input.AddPort(new InPort()
            {
                Name                 = "DoorEventsPort",
                Description          = "On receiving any input to this port, the door's state will be toggled",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                Hidden               = true,
            });

            StatePort = Output.AddPort(new OutPort()
            {
                Name                 = "State",
                Description          = "The state of the door is sent on when changed as Opened or Closed",
                Types                = new string[] { "Text" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
示例#6
0
        protected override void SetupInterfaces()
        {
            Input.AddPort(new InPort()
            {
                Name                 = "In",
                Description          = "The string to output to the console",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
            });

            Output.AddPort(new OutPort()
            {
                Name                 = "PassOn",
                Description          = "The same string immediately passed on",
                Types                = new string[] { "Text" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
示例#7
0
        protected override void SetupInterfaces()
        {
            DelayPort = Input.AddPort(new InPort()
            {
                Name                 = "Delay",
                Description          = "The period to wait before sending messages on",
                Types                = new string[] { "Number" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                RememberOnlyLatest   = true
            });

            InPort = Input.AddPort(new InPort()
            {
                Name                 = "In",
                Description          = "The data that will be sent on",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                }
            });

            OutPort = Output.AddPort(new OutPort()
            {
                Name                 = "Out",
                Description          = "The delayed data",
                Types                = new string[] { "All" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }
        protected override void SetupInterfaces()
        {
            EventNamePort = Input.AddPort(new InPort()
            {
                Name                 = "EventName",
                Description          = "The name of the event to listen for",
                Types                = new string[] { "Text" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                RememberOnlyLatest   = true
            });
            EventPort = Input.AddPort(new InPort()
            {
                Name                 = "Event",
                Description          = "The data that was sent with the event",
                Types                = new string[] { "All" },
                ProcessConnection    = (OutPort otherPort) => {
                },
                ProcessDisconnection = (OutPort otherPort) => {
                },
                Hidden               = true
            });

            OutPort = Output.AddPort(new OutPort()
            {
                Name                 = "Out",
                Description          = "Sends event data when an event of the given name is received",
                Types                = new string[] { "Text" },
                ProcessConnection    = (InPort otherPort) => {
                },
                ProcessDisconnection = (InPort otherPort) => {
                },
            });
        }