|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.logic.model.DynamicDirectInterpreter
public class DynamicDirectInterpreter
This class calculates a new truth value for a given formula for a given interpretation.
Constructor Summary | |
---|---|
DynamicDirectInterpreter(KernelQedeqBo qedeq,
DynamicModel model)
Constructor. |
|
DynamicDirectInterpreter(KernelQedeqBo qedeq,
DynamicModel model,
SubjectVariableInterpreter subjectVariableInterpreter,
PredicateVariableInterpreter predicateVariableInterpreter,
FunctionVariableInterpreter functionVariableInterpreter)
Constructor. |
Method Summary | |
---|---|
Entity |
calculateFunctionValue(FunctionConstant constant,
Entity[] entities)
Calculate function value. |
boolean |
calculatePredicateValue(PredicateConstant constant,
Entity[] entities)
Calculate function value. |
Entity |
calculateTerm(ModuleContext moduleContext,
Element term)
Calculate the term value of a given term. |
boolean |
calculateValue(ModuleContext moduleContext,
Element formula)
Calculate the truth value of a given formula is a tautology. |
void |
clearVariables()
Clear all variable settings. |
DynamicModel |
getModel()
Get model. |
protected ModuleContext |
getModuleContext()
|
boolean |
hasFunctionConstant(ModelFunctionConstant constant)
Is the given function constant already defined? |
boolean |
hasPredicateConstant(ModelPredicateConstant constant)
Is the given predicate constant already defined? |
boolean |
next()
Change to next valuation. |
protected void |
setLocationWithinModule(java.lang.String localContext)
|
protected void |
setModuleContext(KernelQedeqBo qedeq)
|
java.lang.String |
stripReference(java.lang.String operator)
Strips the reference to external modules. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DynamicDirectInterpreter(KernelQedeqBo qedeq, DynamicModel model)
qedeq
- We work with this module.model
- We work with this model.public DynamicDirectInterpreter(KernelQedeqBo qedeq, DynamicModel model, SubjectVariableInterpreter subjectVariableInterpreter, PredicateVariableInterpreter predicateVariableInterpreter, FunctionVariableInterpreter functionVariableInterpreter)
qedeq
- We work with this module.model
- We work with this model.subjectVariableInterpreter
- Subject variable interpreter.predicateVariableInterpreter
- Predicate variable interpreter.functionVariableInterpreter
- Function variable interpreter.Method Detail |
---|
public Entity calculateFunctionValue(FunctionConstant constant, Entity[] entities) throws HeuristicException
constant
- This is the function definition.entities
- Function arguments.
HeuristicException
- Calculation of function value failed.public boolean calculatePredicateValue(PredicateConstant constant, Entity[] entities) throws HeuristicException
constant
- This is the predicate definition.entities
- Function arguments.
HeuristicException
- Calculation failed.public boolean calculateValue(ModuleContext moduleContext, Element formula) throws HeuristicException
moduleContext
- Where we are within an module.formula
- Formula.
HeuristicException
- We couldn't calculate the value.public Entity calculateTerm(ModuleContext moduleContext, Element term) throws HeuristicException
moduleContext
- Where we are within an module.term
- Term.
HeuristicException
- We couldn't calculate the value.protected ModuleContext getModuleContext()
protected void setModuleContext(KernelQedeqBo qedeq)
protected void setLocationWithinModule(java.lang.String localContext)
public boolean next()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String stripReference(java.lang.String operator)
operator
- Might have reference to an external module.
public boolean hasPredicateConstant(ModelPredicateConstant constant)
constant
- Predicate constant to check for.
public boolean hasFunctionConstant(ModelFunctionConstant constant)
constant
- Function constant to check for.
public void clearVariables()
public DynamicModel getModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |