Class ValueCreationResult
- java.lang.Object
-
- net.ssehub.easy.reasoning.core.reasoner.ReasoningResult
-
- net.ssehub.easy.reasoning.core.reasoner.ValueCreationResult
-
public class ValueCreationResult extends ReasoningResult
Denotes the result of creating a value of an IVML variable through the reasoner considering the relevant constraints.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IDecisionVariablevar
-
Constructor Summary
Constructors Constructor Description ValueCreationResult(IDecisionVariable var)Creates a value creation result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValuegetValue()Returns the created value.IDecisionVariablegetVariable()Returns the holding variable.-
Methods inherited from class net.ssehub.easy.reasoning.core.reasoner.ReasoningResult
addAffected, addMessage, getAffectedVariable, getAffectedVariablesCount, getMeasure, getMessage, getMessageCount, hasConflict, hasInfo, hasTimeout, logInformation, logInformation, logInformation, measurementKeys, providesInformationOnAffectedVariables, reasoningUnsupported, setMeasure, setStopped, setTimeout, wasStopped
-
-
-
-
Field Detail
-
var
private IDecisionVariable var
-
-
Constructor Detail
-
ValueCreationResult
public ValueCreationResult(IDecisionVariable var)
Creates a value creation result.- Parameters:
var- the decision variable holding the created value (may be null in case of errors, useReasoningResult.addMessage(Message))
-
-
Method Detail
-
getValue
public Value getValue()
Returns the created value.- Returns:
- the created value (may be null in case of errors, use
ReasoningResult.addMessage(Message))
-
getVariable
public IDecisionVariable getVariable()
Returns the holding variable.- Returns:
- the holding variable (may be null in case of errors, use
ReasoningResult.addMessage(Message))
-
-