Exemplo n.º 1
0
        public static Port Create(IEdgeConnectorListener connectorListener, Direction direction, string name)
        {
            var port = new FSMNodePort(Orientation.Horizontal, direction, Capacity.Multi, null)
            {
                m_EdgeConnector = new EdgeConnector <FSMEdgeView>(connectorListener),
            };

            port.AddManipulator(port.m_EdgeConnector);
            port.portName = name;
            return(port);
        }
Exemplo n.º 2
0
 private void GeneratePorts()
 {
     inputContainer.Add(FSMNodePort.Create(EdgeConnectorListener.Instance, Direction.Input, "Input"));
     outputContainer.Add(FSMNodePort.Create(EdgeConnectorListener.Instance, Direction.Output, "Output"));
 }