public interface IReasoner
ReasoningResult
instead.| Modifier and Type | Method and Description |
|---|---|
ReasoningResult |
check(net.ssehub.easy.varModel.confModel.Configuration cfg,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks the configuration according to the given project structure and does not affect the configuration.
|
IReasonerInstance |
createInstance(net.ssehub.easy.varModel.confModel.Configuration cfg,
ReasonerConfiguration reasonerConfiguration)
Creates a reasoner instance for repeated reasoning on the same model (no structural changes allowed
during two subsequent reasoning runs).
|
ValueCreationResult |
createValue(net.ssehub.easy.varModel.confModel.Configuration cfg,
net.ssehub.easy.varModel.model.AbstractVariable var,
net.ssehub.easy.varModel.model.datatypes.IDatatype type,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Creates the value for a certain IVML type/variable.
|
EvaluationResult |
evaluate(net.ssehub.easy.varModel.confModel.Configuration cfg,
java.util.List<net.ssehub.easy.varModel.model.Constraint> constraints,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Evaluates a given list of constraints (in the sense of boolean conditions) which are related to and valid in the
context of the given project and configuration.
|
ReasonerDescriptor |
getDescriptor()
Returns a descriptor stating common information about this reasoner.
|
ReasoningResult |
initialize(net.ssehub.easy.varModel.confModel.Configuration cfg,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Initializes the configuration according to the given model and propagates values, if possible.
|
ReasoningResult |
isConsistent(net.ssehub.easy.varModel.model.Project project,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks whether a given variability model (project) is satisfiable.
|
void |
notify(IReasonerMessage message)
Is called when a reasoner message is issued.
|
ReasoningResult |
propagate(net.ssehub.easy.varModel.confModel.Configuration cfg,
ReasonerConfiguration reasonerConfiguration,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks the configuration according to the given model and propagates values, if possible.
|
void |
setInterceptor(IReasonerInterceptor interceptor)
Defines the optional interceptor instance.
|
ReasoningResult |
upgrade(java.net.URI url,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Updates the installation of this reasoner, e.g., in order to obtain a licensed reasoner version.
|
ReasonerDescriptor getDescriptor()
ReasoningResult upgrade(java.net.URI url, net.ssehub.easy.basics.progress.ProgressObserver observer)
url - The location of the implementation of the reasoner which should be upgradedobserver - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedReasoningResult isConsistent(net.ssehub.easy.varModel.model.Project project, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
project - The project which should be tested whether it is satisfiable.observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedreasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)Status.UNSUPPORTED if the concrete reasoner does not support
this operation.ReasoningResult check(net.ssehub.easy.varModel.confModel.Configuration cfg, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
cfg - The current configuration to reason on.reasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.ReasoningResult propagate(net.ssehub.easy.varModel.confModel.Configuration cfg, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
cfg - The configuration to reason on (may be modified as a side effect
of value propagation)reasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.ReasoningResult initialize(net.ssehub.easy.varModel.confModel.Configuration cfg, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
GeneralReasonerCapabilities.INCREMENTAL_REASONING. This method shell obey
Configuration.getResolutionState().cfg - The configuration to reason on (may be modified as a side effect
of value propagation)reasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.EvaluationResult evaluate(net.ssehub.easy.varModel.confModel.Configuration cfg, java.util.List<net.ssehub.easy.varModel.model.Constraint> constraints, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
cfg - the configuration as a basis for the evaluationconstraints - the constraints (expressions which evaluate to a boolean value)reasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.void notify(IReasonerMessage message)
message - the message sentIReasonerInstance createInstance(net.ssehub.easy.varModel.confModel.Configuration cfg, ReasonerConfiguration reasonerConfiguration)
cfg - the configuration as a basis for the evaluationreasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)DelegatingReasonerInstance on this reasoner to
avoid null pointer checking.ValueCreationResult createValue(net.ssehub.easy.varModel.confModel.Configuration cfg, net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.datatypes.IDatatype type, ReasonerConfiguration reasonerConfiguration, net.ssehub.easy.basics.progress.ProgressObserver observer)
cfg - the configuration to operate on (will not be modified)var - the variable to create the value for (may be null if type is given, may imply
additional constraints)type - the type to create the value for (may be null if var is given)reasonerConfiguration - the reasoner configuration to be used for reasoning (e.g. taken from the UI,
may be null)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedvoid setInterceptor(IReasonerInterceptor interceptor)
interceptor - the interceptorCopyright © 2009 - 2018 SSE. All Rights Reserved.