Пример #1
0
        /// <summary>
        /// <para></para>
        /// </summary>
        public GenerateCode()
        {
            // BEGIN AUTO-GENERATED INSTANTIATIONS FOR GenerateCode.xmind
            Apply <IPortConnection, string> getWiringCode = new Apply <IPortConnection, string>()
            {
                InstanceName = "getWiringCode", Lambda = wire => GetWiringCode(wire)
            };
            Apply <VisualPortGraph, IEnumerable <IPortConnection> > id_93847d6aaed2417982f07e3c5ceb7d6c = new Apply <VisualPortGraph, IEnumerable <IPortConnection> >()
            {
                InstanceName = "Default", Lambda = graph => graph.GetConnections()
            };
            Apply <VisualPortGraph, IEnumerable <VisualPortGraphNode> > id_58c0814d58704d2ba3914cb9086e1d4c = new Apply <VisualPortGraph, IEnumerable <VisualPortGraphNode> >()
            {
                InstanceName = "Default", Lambda = graph => graph.GetNodes().Select(n => n as VisualPortGraphNode)
            };
            Apply <VisualPortGraphNode, string> getInstantiationCode = new Apply <VisualPortGraphNode, string>()
            {
                InstanceName = "getInstantiationCode", Lambda = node => GetInstantiationCode(node)
            };
            Collection <string> id_edb65ab7de9643389d7ad3b04e552a23 = new Collection <string>()
            {
                InstanceName = "Default", OutputLength = -2, OutputOnEvent = true
            };
            Collection <string> id_f0164989439c44c69ad7d21790e8b6fe = new Collection <string>()
            {
                InstanceName = "Default", OutputLength = -2, OutputOnEvent = true
            };
            ConditionalData <string> id_4bffda1df55b4072b1d4c5fae8296108 = new ConditionalData <string>()
            {
                InstanceName = "Default", Condition = s => !string.IsNullOrWhiteSpace(s)
            };
            ConditionalData <string> id_cdddd549ddf24caa98e599e12ae9bd4a = new ConditionalData <string>()
            {
                InstanceName = "Default", Condition = s => !string.IsNullOrWhiteSpace(s)
            };
            Data <VisualPortGraph> id_02492ace575b4661a828cda6c3ae4513 = new Data <VisualPortGraph>()
            {
                InstanceName = "Default", Lambda = GetGraph
            };
            Data <VisualPortGraph> id_6da14dcf73384827ba2a82ae293841d5 = new Data <VisualPortGraph>()
            {
                InstanceName = "Default", Lambda = GetGraph
            };
            ForEach <IPortConnection> id_2964f2d203b64e86b40148d73196645d = new ForEach <IPortConnection>()
            {
                InstanceName = "Default"
            };
            ForEach <VisualPortGraphNode> id_153c3759698e4ce889f4782c9d76d418 = new ForEach <VisualPortGraphNode>()
            {
                InstanceName = "Default"
            };

            // END AUTO-GENERATED INSTANTIATIONS FOR GenerateCode.xmind

            // BEGIN AUTO-GENERATED WIRING FOR GenerateCode.xmind
            startConnector.WireTo(id_6da14dcf73384827ba2a82ae293841d5, "fanoutList");                              // (@EventConnector (startConnector).fanoutList) -- [IEvent] --> (Data<VisualPortGraph> (id_6da14dcf73384827ba2a82ae293841d5).start)
            startConnector.WireTo(id_02492ace575b4661a828cda6c3ae4513, "fanoutList");                              // (@EventConnector (startConnector).fanoutList) -- [IEvent] --> (Data<VisualPortGraph> (id_02492ace575b4661a828cda6c3ae4513).start)
            id_6da14dcf73384827ba2a82ae293841d5.WireTo(id_58c0814d58704d2ba3914cb9086e1d4c, "dataOutput");         // (Data<VisualPortGraph> (id_6da14dcf73384827ba2a82ae293841d5).dataOutput) -- [IDataFlow<VisualPortGraph>] --> (Apply<VisualPortGraph,IEnumerable<VisualPortGraphNode>> (id_58c0814d58704d2ba3914cb9086e1d4c).input)
            id_58c0814d58704d2ba3914cb9086e1d4c.WireTo(id_153c3759698e4ce889f4782c9d76d418, "output");             // (Apply<VisualPortGraph,IEnumerable<VisualPortGraphNode>> (id_58c0814d58704d2ba3914cb9086e1d4c).output) -- [IDataFlow<IEnumerable<VisualPortGraphNode>>] --> (ForEach<VisualPortGraphNode> (id_153c3759698e4ce889f4782c9d76d418).collectionInput)
            id_153c3759698e4ce889f4782c9d76d418.WireTo(getInstantiationCode, "elementOutput");                     // (ForEach<VisualPortGraphNode> (id_153c3759698e4ce889f4782c9d76d418).elementOutput) -- [IDataFlow<VisualPortGraphNode>] --> (Apply<VisualPortGraphNode,string> (getInstantiationCode).input)
            id_153c3759698e4ce889f4782c9d76d418.WireTo(id_edb65ab7de9643389d7ad3b04e552a23, "complete");           // (ForEach<VisualPortGraphNode> (id_153c3759698e4ce889f4782c9d76d418).complete) -- [IEvent] --> (Collection<string> (id_edb65ab7de9643389d7ad3b04e552a23).clearList)
            getInstantiationCode.WireTo(id_4bffda1df55b4072b1d4c5fae8296108, "output");                            // (Apply<VisualPortGraphNode,string> (getInstantiationCode).output) -- [IDataFlow<string>] --> (ConditionalData<string> (id_4bffda1df55b4072b1d4c5fae8296108).input)
            id_4bffda1df55b4072b1d4c5fae8296108.WireTo(id_edb65ab7de9643389d7ad3b04e552a23, "conditionMetOutput"); // (ConditionalData<string> (id_4bffda1df55b4072b1d4c5fae8296108).conditionMetOutput) -- [IDataFlow<string>] --> (Collection<string> (id_edb65ab7de9643389d7ad3b04e552a23).element)
            id_edb65ab7de9643389d7ad3b04e552a23.WireTo(instantiationLinesOutputConnector, "listOutput");           // (Collection<string> (id_edb65ab7de9643389d7ad3b04e552a23).listOutput) -- [IDataFlow<List<string>>] --> (@DataFlowConnector<List<string>> (instantiationLinesOutputConnector).dataInput)
            id_02492ace575b4661a828cda6c3ae4513.WireTo(id_93847d6aaed2417982f07e3c5ceb7d6c, "dataOutput");         // (Data<VisualPortGraph> (id_02492ace575b4661a828cda6c3ae4513).dataOutput) -- [IDataFlow<VisualPortGraph>] --> (Apply<VisualPortGraph,IEnumerable<IPortConnection>> (id_93847d6aaed2417982f07e3c5ceb7d6c).input)
            id_93847d6aaed2417982f07e3c5ceb7d6c.WireTo(id_2964f2d203b64e86b40148d73196645d, "output");             // (Apply<VisualPortGraph,IEnumerable<IPortConnection>> (id_93847d6aaed2417982f07e3c5ceb7d6c).output) -- [IDataFlow<IEnumerable<IPortConnection>>] --> (ForEach<IPortConnection> (id_2964f2d203b64e86b40148d73196645d).collectionInput)
            id_2964f2d203b64e86b40148d73196645d.WireTo(getWiringCode, "elementOutput");                            // (ForEach<IPortConnection> (id_2964f2d203b64e86b40148d73196645d).elementOutput) -- [IDataFlow<IPortConnection>] --> (Apply<IPortConnection,string> (getWiringCode).input)
            id_2964f2d203b64e86b40148d73196645d.WireTo(id_f0164989439c44c69ad7d21790e8b6fe, "complete");           // (ForEach<IPortConnection> (id_2964f2d203b64e86b40148d73196645d).complete) -- [IEvent] --> (Collection<string> (id_f0164989439c44c69ad7d21790e8b6fe).clearList)
            getWiringCode.WireTo(id_cdddd549ddf24caa98e599e12ae9bd4a, "output");                                   // (Apply<IPortConnection,string> (getWiringCode).output) -- [IDataFlow<string>] --> (ConditionalData<string> (id_cdddd549ddf24caa98e599e12ae9bd4a).input)
            id_cdddd549ddf24caa98e599e12ae9bd4a.WireTo(id_f0164989439c44c69ad7d21790e8b6fe, "conditionMetOutput"); // (ConditionalData<string> (id_cdddd549ddf24caa98e599e12ae9bd4a).conditionMetOutput) -- [IDataFlow<string>] --> (Collection<string> (id_f0164989439c44c69ad7d21790e8b6fe).element)
            id_f0164989439c44c69ad7d21790e8b6fe.WireTo(wiringLinesOutputConnector, "listOutput");                  // (Collection<string> (id_f0164989439c44c69ad7d21790e8b6fe).listOutput) -- [IDataFlow<List<string>>] --> (@DataFlowConnector<List<string>> (wiringLinesOutputConnector).dataInput)
            // END AUTO-GENERATED WIRING FOR GenerateCode.xmind

            // BEGIN MANUAL INSTANTIATIONS FOR GenerateCode.xmind
            // END MANUAL INSTANTIATIONS FOR GenerateCode.xmind

            // BEGIN MANUAL WIRING FOR GenerateCode.xmind
            // END MANUAL WIRING FOR GenerateCode.xmind
        }