| java.lang.Object org.mandarax.reference.SessionImpl
SessionImpl | public SessionImpl(org.mandarax.kernel.KnowledgeBase kb, InferenceEngine ie, Query query, int exceptionHandlingStrategy, int cardinalityConstraint)(Code) | | Constructor.
Parameters: kb - a knowledge base Parameters: ie - an inference engine Parameters: query - a query Parameters: exceptionHandlingStrategy - the exception handling strategy Parameters: cardinality - constraint the cardinality constraint |
equals | public boolean equals(Object obj)(Code) | | Compares objects.
Parameters: obj - another object a boolean |
getAttribute | public Object getAttribute(Object attrName)(Code) | | Get (lookup) a session attribute.
Parameters: attrName - the attribute name the attribute value (null indicates that there was no registered value. |
getCardinalityContraint | public int getCardinalityContraint()(Code) | | Get the cardinality constraints for this session.
an integer See Also: InferenceEngine.ALL |
getId | public Object getId()(Code) | | Get a unique session id.
a session id |
getInferenceEngine | public InferenceEngine getInferenceEngine()(Code) | | Get the inference engine used in this session.
an inference engine |
getQuery | public Query getQuery()(Code) | | Get the query for this session.
a query |
getVariableReplacements | public Map getVariableReplacements()(Code) | | Get a map containing the current query variable replacements.
I.e., the map contains association VariableTerm -> ConstantTerm
a map |
hashCode | public int hashCode()(Code) | | Get the hashcode for this object.
an integer hash value |
setAttribute | public void setAttribute(Object attrName, Object attrValue)(Code) | | Set (bind) a session attribute.
Parameters: attrName - the attribute name Parameters: attrValue - an attribute value |
update | void update(Map variableRenamings, List constraints)(Code) | | Update the variable renamings and the constraints.
Parameters: a - map containing variable renamings (var term -> var term associations) Parameters: a - list of constraints |
|
|