org.deduced
Class RuleExecutionContextImplementation

java.lang.Object
  extended by org.deduced.RuleExecutionContextImplementation
All Implemented Interfaces:
RuleExecutionContext

public class RuleExecutionContextImplementation
extends java.lang.Object
implements RuleExecutionContext

Default implementation of the rule execution context

Author:
Steve McDuff

Field Summary
private  ModelFactory modelFactory
          model factory being used
private  DeducedModelLayerExtension modelLayer
          model layer
 
Constructor Summary
RuleExecutionContextImplementation()
          RuleExecutionContextImplementation constructor
 
Method Summary
 ModelFactory getModelFactory()
          (non-Javadoc)
 DeducedModelLayerExtension getModelLayer()
          (non-JSDoc)
 void setModelFactory(ModelFactory setModelFactory)
          set Model Factory
 void setModelLayer(DeducedModelLayerExtension setLayer)
          set Model Layer
 void setModelLayerAndFactory(DeducedModelLayerExtension setLayer)
          set Model Layer And Factory from model layer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelFactory

private ModelFactory modelFactory
model factory being used


modelLayer

private DeducedModelLayerExtension modelLayer
model layer

Constructor Detail

RuleExecutionContextImplementation

public RuleExecutionContextImplementation()
RuleExecutionContextImplementation constructor

Method Detail

setModelLayerAndFactory

public void setModelLayerAndFactory(DeducedModelLayerExtension setLayer)
set Model Layer And Factory from model layer

Parameters:
setLayer - the layer to use

setModelLayer

public void setModelLayer(DeducedModelLayerExtension setLayer)
set Model Layer

Parameters:
setLayer - the new model layer

getModelFactory

public ModelFactory getModelFactory()
(non-Javadoc)

Specified by:
getModelFactory in interface RuleExecutionContext
Returns:
the model factory used by the collection on which the rule is being executed. This is useful for rules that want to create objects as their output.
See Also:
RuleExecutionContext.getModelFactory()

setModelFactory

public void setModelFactory(ModelFactory setModelFactory)
set Model Factory

Parameters:
setModelFactory - the new model factory to use

getModelLayer

public DeducedModelLayerExtension getModelLayer()
(non-JSDoc)

Specified by:
getModelLayer in interface RuleExecutionContext
Returns:
the model layer used to execute rules
See Also:
RuleExecutionContext.getModelLayer()