Class EvaluationVisitor.Message
- java.lang.Object
-
- net.ssehub.easy.basics.messages.Message
-
- net.ssehub.easy.varModel.cstEvaluation.EvaluationVisitor.Message
-
- All Implemented Interfaces:
IMessage
- Enclosing class:
- EvaluationVisitor
public static class EvaluationVisitor.Message extends Message
Extended Message class for saving variables that fail in assignments.- Author:
- Sizonenko
-
-
Field Summary
Fields Modifier and Type Field Description private intcodestatic intCODE_ASSIGNMENT_STATEstatic intCODE_INDEXstatic intCODE_RESOLUTIONstatic intCODE_THROWABLEstatic intCODE_UNSUPPORTEDprivate IDecisionVariablevar
-
Constructor Summary
Constructors Constructor Description Message(java.lang.String description, Status status, IDecisionVariable var, int code)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Returns the error/message code.IDecisionVariablegetDecision()Returns the causing decision variable.AbstractVariablegetVariable()Getter for the variable declaration.-
Methods inherited from class net.ssehub.easy.basics.messages.Message
containsError, getDescription, getDetailedDescription, getStatus, toString
-
-
-
-
Field Detail
-
CODE_UNSUPPORTED
public static final int CODE_UNSUPPORTED
- See Also:
- Constant Field Values
-
CODE_ASSIGNMENT_STATE
public static final int CODE_ASSIGNMENT_STATE
- See Also:
- Constant Field Values
-
CODE_RESOLUTION
public static final int CODE_RESOLUTION
- See Also:
- Constant Field Values
-
CODE_INDEX
public static final int CODE_INDEX
- See Also:
- Constant Field Values
-
CODE_THROWABLE
public static final int CODE_THROWABLE
- See Also:
- Constant Field Values
-
var
private IDecisionVariable var
-
code
private int code
-
-
Constructor Detail
-
Message
public Message(java.lang.String description, Status status, IDecisionVariable var, int code)Main constructor.- Parameters:
description- Description of why variable is saved.status-Statusof the message.var- causingIDecisionVariableto be saved.code- the message code for detailing the problem
-
-
Method Detail
-
getVariable
public AbstractVariable getVariable()
Getter for the variable declaration.- Returns:
- the variable declaration or null if no
IDecisionVariablewas passed to the constructor.
-
getDecision
public IDecisionVariable getDecision()
Returns the causing decision variable.- Returns:
- the causing decision variable or null if no
IDecisionVariablewas passed to the constructor.
-
getCode
public int getCode()
Returns the error/message code.- Returns:
- the code
-
-