ctIncGFi.setTypeEquals(BaseType.DOUBLE);
ctIncGF.output.setTypeEquals(BaseType.DOUBLE);
ctIncGF.expression.setExpression("in - 0.2");
// the ports
TypedIOPort ctIncIn = (TypedIOPort) ctInc.newPort("input");
ctIncIn.setInput(true);
ctIncIn.setTypeEquals(BaseType.DOUBLE);
TypedIOPort ctIncOut = (TypedIOPort) ctInc.newPort("output");
ctIncOut.setOutput(true);