Class Report

java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Report

public class Report extends Message
The report message is sent from an agent to the {edu.uky.cs.nil.tt.Server server} to indicate the value of a question on a survey about the session they are playing.
Author:
Stephen G. Ware
  • Field Details

    • item

      public final String item
      The name or ID of the survey question
    • value

      public final String value
      The answer the agent gives to the survey question
    • comment

      public final String comment
      A comment provided by the agent explaining their answer, or null if the question does not allow comments or the agent does not provide one
  • Constructor Details

    • Report

      public Report(String item, String value, String comment)
      Constructs a new report message.
      Parameters:
      item - the name or ID of the survey question
      value - the answer the agent gives to the question
      comment - a comment explaining the answer, or null
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • verify

      public void verify()
      Description copied from class: Message
      Checks that this message is correctly configured and throws an exception if not. This method should be called soon after the message has been parsed. It should check that all the necessary fields are set and that their values are legal values.
      Specified by:
      verify in class Message