Class 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
    • 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 - Status of the message.
        var - causing IDecisionVariable to 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 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