org.shapelogic.calculation
Class SimpleRecursiveContext<K>

java.lang.Object
  extended by org.shapelogic.calculation.SimpleRecursiveContext<K>
All Implemented Interfaces:
RecursiveContext<K>

public class SimpleRecursiveContext<K>
extends java.lang.Object
implements RecursiveContext<K>

Simple implementation of a RecursiveContext.
This could be a mix in class or just a test class.

Author:
Sami Badawi

Constructor Summary
SimpleRecursiveContext(java.util.Map<K,?> context, RecursiveContext<K> parentContext)
           
SimpleRecursiveContext(RecursiveContext<K> parentContext)
           
 
Method Summary
 java.util.Map<K,?> getContext()
           
 RecursiveContext<K> getParentContext()
           
 void setContext(java.util.Map<K,?> context)
           
 void setParentContext(RecursiveContext<K> parentContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRecursiveContext

public SimpleRecursiveContext(RecursiveContext<K> parentContext)

SimpleRecursiveContext

public SimpleRecursiveContext(java.util.Map<K,?> context,
                              RecursiveContext<K> parentContext)
Method Detail

setContext

public void setContext(java.util.Map<K,?> context)

setParentContext

public void setParentContext(RecursiveContext<K> parentContext)

getContext

public java.util.Map<K,?> getContext()
Specified by:
getContext in interface RecursiveContext<K>

getParentContext

public RecursiveContext<K> getParentContext()
Specified by:
getParentContext in interface RecursiveContext<K>


Copyright © 2008. All Rights Reserved.