/** * Constructor * * @param output a value goes here * @param input a value comes from here * @param conversion is converted via this conversion * @param debug for debugging output */ public DecimalOutputSymbolImpl( Output output, Input input, DecimalConversion conversion, DebugMessages debug) { this.output = output; this.input = input; if (input.getParameters().length != 0) { throw new EngineInitializationException( "Number of parameters must be 0: An output symbol does not have parameters"); } this.conversion = conversion; }
public double getValue() { return conversion.from(input.getValue()); }