public class ReasoningProcess
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private net.ssehub.easy.varModel.confModel.Configuration |
config |
private ReasoningOperation |
desiredOperation |
private IReasonerListener |
listener |
private static boolean |
LOG_RESULT |
private net.ssehub.easy.basics.progress.ProgressObserver |
observer |
private net.ssehub.easy.varModel.model.Project |
project |
private ReasonerConfiguration |
reasonerConfig |
private ReasoningResult |
result |
| Constructor and Description |
|---|
ReasoningProcess(net.ssehub.easy.varModel.model.Project project,
ReasonerConfiguration reasonerConfig,
IReasonerListener listener,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Constructor for checking the consistency (satisfiability) of a project, without having a configuration.
|
ReasoningProcess(ReasoningOperation desiredOperation,
net.ssehub.easy.varModel.confModel.Configuration config,
ReasonerConfiguration reasonerConfig,
IReasonerListener listener,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Sole constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
ReasoningResult |
getReasoningResult()
Returns the result of the reasoning, i.e.
|
private void |
logResult()
Performs the result logging as it was previously integrated into the reasoner but removed for performance
reasons.
|
void |
run()
Executes the reasoning.
|
private void |
setErrorResult(java.lang.String errorMsg)
Sets a
ReasoningResult denoting that an error occurred during reasoning. |
private static final boolean LOG_RESULT
private ReasoningOperation desiredOperation
private ReasoningResult result
private net.ssehub.easy.varModel.model.Project project
private net.ssehub.easy.varModel.confModel.Configuration config
private ReasonerConfiguration reasonerConfig
private IReasonerListener listener
private net.ssehub.easy.basics.progress.ProgressObserver observer
public ReasoningProcess(ReasoningOperation desiredOperation, net.ssehub.easy.varModel.confModel.Configuration config, ReasonerConfiguration reasonerConfig, IReasonerListener listener, net.ssehub.easy.basics.progress.ProgressObserver observer)
desiredOperation - Specifies which reasoning operation should be performed.config - The configuration, which should be used for reasoning.reasonerConfig - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)listener - A listener which will be called after the reasoning has been finished.
Can be null, if no action shall be executed after the reasoning is finished.observer - a progress observer indicating the progress, use ProgressObserver.NO_OBSERVER if no
progress shall be indicatedpublic ReasoningProcess(net.ssehub.easy.varModel.model.Project project,
ReasonerConfiguration reasonerConfig,
IReasonerListener listener,
net.ssehub.easy.basics.progress.ProgressObserver observer)
project - The origin project which should be used for reasoningreasonerConfig - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)listener - A listener which will be called after the reasoning has been finished.
Can be null, if no action shall be executed after the reasoning is finished.observer - a progress observer indicating the progress, use ProgressObserver.NO_OBSERVER if no
progress shall be indicatedpublic void run()
run in interface java.lang.Runnableprivate void logResult()
public ReasoningResult getReasoningResult()
run() method.
This method should be used, if no ReasoningResult was used.private void setErrorResult(java.lang.String errorMsg)
ReasoningResult denoting that an error occurred during reasoning.errorMsg - A description what kind of error occurred.Copyright © 2009 - 2018 SSE. All Rights Reserved.