org.shapelogic.calculation
Interface CalcInContext<K,V>

Type Parameters:
K -
V -
All Superinterfaces:
CalcValue<V>, LazyCalc<V>
All Known Implementing Classes:
BaseCalcInContext

public interface CalcInContext<K,V>
extends LazyCalc<V>

Some calculations rely on the context that it is going on in.

Author:
Sami Badawi

Method Summary
 V calc(RecursiveContext<K> contextArray)
          This a convenience method that set the calculated value in the right context.
 V invoke(RecursiveContext<K> contextArray)
          This is the method that the user should override.
 
Methods inherited from interface org.shapelogic.calculation.LazyCalc
isDirty, setup
 
Methods inherited from interface org.shapelogic.calculation.CalcValue
getValue
 

Method Detail

invoke

V invoke(RecursiveContext<K> contextArray)
This is the method that the user should override.

Parameters:
contextArray -
Returns:

calc

V calc(RecursiveContext<K> contextArray)
This a convenience method that set the calculated value in the right context.

Parameters:
contextArray -
Returns:


Copyright © 2009. All Rights Reserved.