Class InconsistencyGetMeasuresResponse

java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.incmes.InconsistencyGetMeasuresResponse

public class InconsistencyGetMeasuresResponse extends Response
Represents a response object that contains a list of measures related to identified inconsistencies. This class extends Response to inherit base response functionality.
  • Constructor Details

    • InconsistencyGetMeasuresResponse

      public InconsistencyGetMeasuresResponse()
      Constructs an empty InconsistencyGetMeasuresResponse with uninitialized fields. This default constructor is useful when the object needs to be populated manually.
    • InconsistencyGetMeasuresResponse

      public InconsistencyGetMeasuresResponse(List<HashMap<String,String>> measures, String reply, String email)
      Constructs a InconsistencyGetMeasuresResponse initialized with measures, a reply message, and an email.
      Parameters:
      measures - A list of hashmaps, each representing a measure and its related data.
      reply - A string containing a response or feedback related to the request.
      email - The email address associated with the request for tracking or response purposes.
  • Method Details

    • getMeasures

      public List<HashMap<String,String>> getMeasures()
      Retrieves the list of measures related to the inconsistency analysis.
      Returns:
      A list of hashmaps where each hashmap contains key-value pairs representing measure attributes.
    • setMeasures

      public void setMeasures(List<HashMap<String,String>> measures)
      Sets the list of measures associated with the inconsistency analysis.
      Parameters:
      measures - A list of hashmaps where each hashmap includes measure-specific data.
    • getReply

      public String getReply()
      Retrieves the reply message associated with this response.
      Returns:
      A string containing the reply message.
    • setReply

      public void setReply(String reply)
      Sets the reply message for this response.
      Parameters:
      reply - A string that will be used as the reply or feedback.
    • getEmail

      public String getEmail()
      Retrieves the email address associated with this response.
      Returns:
      A string containing the email address.
    • setEmail

      public void setEmail(String email)
      Sets the email address for this response.
      Parameters:
      email - A string containing the email address to be associated with this response.
    • measures

      Method to set the measures and return the modified response object.
      Parameters:
      measures - A list of hashmaps with measure-related data to set.
      Returns:
      This InconsistencyGetMeasuresResponse instance to facilitate further modifications.
    • reply

      Method to set the reply and return the modified response object.
      Parameters:
      reply - A string to set as the reply or feedback.
      Returns:
      This InconsistencyGetMeasuresResponse instance to facilitate further modifications.
    • email

      Method to set the email and return the modified response object.
      Parameters:
      email - A string to set as the email address.
      Returns:
      This InconsistencyGetMeasuresResponse instance to facilitate further modifications.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object