org.formulacompiler.runtime
Interface ComputationFactory


public interface ComputationFactory

Interface which is implemented by all computation factories generated by AFC. If you specify an application-specific factory type to AFC's compiler, then you should cast the factory returned by AFC to your own type immediately and not use this interface here.

Author:
peo

Method Summary
 Computation newComputation(java.lang.Object _inputs)
          Returns a new instance of a computation.
 

Method Detail

newComputation

Computation newComputation(java.lang.Object _inputs)
Returns a new instance of a computation. You must cast the result to your application-specific output type for it to be of any use. This method is thread-safe.

Parameters:
_inputs - defines the instance which gets called to obtain values for input cells in the computation.
Returns:
a new computation instance, which is not thread-safe.