Channel channel = s.getIOField("input"); output[outputIndx] = channel;
Channel channel = s.getIOField("inputChannel"); outputChannel[outputIndx] = channel;
    public void connectGraph()    {        // do I even have anything to do?        if (dest.isEmpty())            return;        // yep, create an output array of appropriate size        output = new Channel[dest.size()];        // go through my members and connect them all with        // ChannelConnectFilter        int outputIndx = 0;        ListIterator iter = dest.listIterator();        while (iter.hasNext())            {                // get the stream                Stream s = (Stream)iter.next();                // it is possible that the stream will legitimately be null                // just don't do anything in this case!                if (s != null)                    {                        // connect it and retrieve its input and copy it into                        // the output array for this splitter                        s.setupOperator();                        Channel channel = s.getIOField("input");                        output[outputIndx] = channel;                        // if it is not a source, make sure that it consumes data                        // of the same kind as everything else in this Splitter                        if (channel != null)                            {                                // handle input channel                                if (input == null)                                    {                                        input = new Channel(channel);                                        input.setSink(this);                                    }                                else                                    {                                        // check that the input types agree                                        assert channel.getType().getName()                                            .equals(input.getType().getName()):                                            "input type = "                                            + input.getType().getName()                                            + " but channel type = "                                            + channel.getType().getName();                                    }                                // now connect the channel to the Splitter                                channel.setSource(this);                            }                    }                outputIndx++;            }    }