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 Details

  • 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 - Status of the message.
      var - causing IDecisionVariable to be saved.
      code - the message code for detailing the problem
  • Method Details

    • getVariable

      public AbstractVariable getVariable()
      Getter for the variable declaration.
      Returns:
      the variable declaration or null if no IDecisionVariable was passed to the constructor.
    • getDecision

      public IDecisionVariable getDecision()
      Returns the causing decision variable.
      Returns:
      the causing decision variable or null if no IDecisionVariable was passed to the constructor.
    • getCode

      public int getCode()
      Returns the error/message code.
      Returns:
      the code