input = new Channel(inType);
if (initPhases.size()==0 && steadyPhases.size()==1) { PhaseInfo pi = (PhaseInfo)steadyPhases.get(0); input = new Channel(inType, pi.o, pi.e); } else { input = new Channel(inType); }
    public void connectGraph()    {        if (ccStyleInit)        {            if (outputType != null)            {                output = new Channel(outputType, pushAmount);            }            if (inputType != null)            {                if (peekAmount == -1)                    peekAmount = popAmount;                input = new Channel(inputType, popAmount, peekAmount);            }        }        else if (multiPhaseStyle)        {            if (inType != null)            {                input = new Channel(inType);            }            if (outType != null)            {                output = new Channel(outType);            }        }        Channel myInput = getInputChannel();        Channel myOutput = getOutputChannel();        if (myOutput != null)        {            myOutput.setSource(this);        }        else        {            addSink();        }        if (myInput != null)        {            myInput.setSink(this);        }        addFilter();        initCount();    }