public interface IReasonerInstance
| Modifier and Type | Method and Description |
|---|---|
ReasoningResult |
check(net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks the configuration according to the given project structure and does not affect the configuration.
|
ValueCreationResult |
createValue(net.ssehub.easy.varModel.model.AbstractVariable var,
net.ssehub.easy.varModel.model.datatypes.IDatatype type,
net.ssehub.easy.basics.progress.ProgressObserver observer)
Creates the value for a certain IVML type/variable.
|
EvaluationResult |
evaluate(java.util.List<net.ssehub.easy.varModel.model.Constraint> constraints,
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.
|
net.ssehub.easy.varModel.model.Project |
getProject()
Returns the project this instance is attached to.
|
ReasonerConfiguration |
getReasonerConfiguration()
Returns the reasoner configuration this project is running with.
|
ReasoningResult |
isConsistent(net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks whether a given variability model (project) is satisfiable.
|
boolean |
isRunning()
Returns whether the reasoner is (still) operating.
|
void |
notify(IReasonerMessage message)
Is called when a reasoner message is issued.
|
ReasoningResult |
propagate(net.ssehub.easy.basics.progress.ProgressObserver observer)
Checks the configuration according to the given model and propagates values, if possible.
|
boolean |
stop()
Stops/terminates reasoning.
|
ReasonerDescriptor getDescriptor()
ReasoningResult isConsistent(net.ssehub.easy.basics.progress.ProgressObserver observer)
observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.ReasoningResult check(net.ssehub.easy.basics.progress.ProgressObserver observer)
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.basics.progress.ProgressObserver observer)
observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.EvaluationResult evaluate(java.util.List<net.ssehub.easy.varModel.model.Constraint> constraints, net.ssehub.easy.basics.progress.ProgressObserver observer)
constraints - the constraints (expressions which evaluate to a boolean value)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedStatus.UNSUPPORTED if the concrete reasoner does not support
this operation.ValueCreationResult createValue(net.ssehub.easy.varModel.model.AbstractVariable var, net.ssehub.easy.varModel.model.datatypes.IDatatype type, net.ssehub.easy.basics.progress.ProgressObserver observer)
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)observer - an optional progress observer, shall be ProgressObserver.NO_OBSERVER if unusedvoid notify(IReasonerMessage message)
message - the message sentboolean isRunning()
true for operating, false elseboolean stop()
true if the reasoner tries to stop, false else
(operation not implemented)ReasoningResult.setStopped(boolean)net.ssehub.easy.varModel.model.Project getProject()
ReasonerConfiguration getReasonerConfiguration()
Copyright © 2009 - 2018 SSE. All Rights Reserved.