Class ChainedReasonerState
- java.lang.Object
-
- net.ssehub.easy.reasoning.core.frontend.ChainedReasonerState
-
public class ChainedReasonerState extends java.lang.ObjectHelper class implementing a chained reasoner state. Can be used for a hybrid reasoner to signal that we are in chained reasoning. This state has both, reasoning and evaluation result. The one to use is determined by the reasoning calls to the reasoner chain.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigprivate EvaluationResultevaluationResultprivate ReasoningResultreasoningResult
-
Constructor Summary
Constructors Constructor Description ChainedReasonerState(Configuration config, EvaluationResult evaluationResult)Creates a reasoner state.ChainedReasonerState(Configuration config, ReasoningResult reasoningResult)Creates a reasoner state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationgetLastConfiguration()Returns the last configuration to be passed on.EvaluationResultgetLastEvaluationResult()Returns the last evaluation result to be passed on and considered.ReasoningResultgetLastReasoningResult()Returns the last reasoning result to be passed on and considered.
-
-
-
Field Detail
-
config
private Configuration config
-
reasoningResult
private ReasoningResult reasoningResult
-
evaluationResult
private EvaluationResult evaluationResult
-
-
Constructor Detail
-
ChainedReasonerState
public ChainedReasonerState(Configuration config, ReasoningResult reasoningResult)
Creates a reasoner state.- Parameters:
config- the configuration to reason on (instead of the one passed in through the usual methods)reasoningResult- the reasoning result of the last reasoner step (may be null for the first reasoner in a chain)
-
ChainedReasonerState
public ChainedReasonerState(Configuration config, EvaluationResult evaluationResult)
Creates a reasoner state.- Parameters:
config- the configuration to reason on (instead of the one passed in through the usual methods)evaluationResult- the evaluation result of the last reasoner step (may be null for the first reasoner in a chain)
-
-
Method Detail
-
getLastConfiguration
public Configuration getLastConfiguration()
Returns the last configuration to be passed on.- Returns:
- the last configuration
-
getLastReasoningResult
public ReasoningResult getLastReasoningResult()
Returns the last reasoning result to be passed on and considered.- Returns:
- the last reasoning result (may be null for the first reasoner in a chain)
-
getLastEvaluationResult
public EvaluationResult getLastEvaluationResult()
Returns the last evaluation result to be passed on and considered.- Returns:
- the last evaluation result (may be null for the first reasoner in a chain)
-
-