super(name);
mValue = 0.0f;
Frame output = env.getFrameManager().newFrame(mOutputFormat); output.setObjectValue(((float)Math.sin(mValue) + 1.0f) / 2.0f); pushOutput("value", output); mValue += mStepSize; output.release();
mOutputFormat = ObjectFormat.fromClass(Float.class, FrameFormat.TARGET_SIMPLE); addOutputPort("value", mOutputFormat);