Class EvaluationVisitor.Message
java.lang.Object
net.ssehub.easy.basics.messages.Message
net.ssehub.easy.varModel.cstEvaluation.EvaluationVisitor.Message
- All Implemented Interfaces:
net.ssehub.easy.basics.messages.IMessage
- Enclosing class:
EvaluationVisitor
public static class EvaluationVisitor.Message
extends net.ssehub.easy.basics.messages.Message
Extended Message class for saving variables that fail in assignments.
- Author:
- Sizonenko
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intstatic final intstatic final intstatic final intstatic final intprivate IDecisionVariable -
Constructor Summary
ConstructorsConstructorDescriptionMessage(String description, net.ssehub.easy.basics.messages.Status status, IDecisionVariable var, int code) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the error/message code.Returns the causing decision variable.Getter for the variable declaration.Methods inherited from class net.ssehub.easy.basics.messages.Message
containsError, getDescription, getDetailedDescription, getStatus, toString
-
Field Details
-
CODE_UNSUPPORTED
public static final int CODE_UNSUPPORTED- See Also:
-
CODE_ASSIGNMENT_STATE
public static final int CODE_ASSIGNMENT_STATE- See Also:
-
CODE_RESOLUTION
public static final int CODE_RESOLUTION- See Also:
-
CODE_INDEX
public static final int CODE_INDEX- See Also:
-
CODE_THROWABLE
public static final int CODE_THROWABLE- See Also:
-
var
-
code
private int code
-
-
Constructor Details
-
Message
public Message(String description, net.ssehub.easy.basics.messages.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 Details
-
getVariable
Getter for the variable declaration.- Returns:
- the variable declaration or null if no
IDecisionVariablewas passed to the constructor.
-
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
-