Class DeLPResponse

java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.delp.DeLPResponse

public class DeLPResponse extends Response
The DeLPResponse class extends the Response class and represents a response containing information related to a Defeasible Logic Program (DeLP) operation.
  • Constructor Details

    • DeLPResponse

      public DeLPResponse()
      Default constructor for DeLPResponse.
    • DeLPResponse

      public DeLPResponse(String reply, String email, String compcriterion, String kb, String query, int timeout, String answer, double time, String unit_time, String status)
      Parameterized constructor for DeLPResponse.
      Parameters:
      reply - The reply message
      email - The email associated with the response
      compcriterion - The completeness criterion
      kb - The knowledge base (KB)
      query - The query string
      timeout - The timeout value (in seconds)
      answer - The answer provided
      time - The time taken for the operation
      unit_time - The unit time specified
      status - The status of the response
  • Method Details

    • getReply

      public String getReply()
      Gets the reply message in the DeLP response.
      Returns:
      The reply message in the DeLP response.
    • setReply

      public void setReply(String reply)
      Sets the reply message in the DeLP response.
      Parameters:
      reply - The reply message in the DeLP response.
    • getEmail

      public String getEmail()
      Gets the email associated with the DeLP response.
      Returns:
      The email associated with the DeLP response.
    • setEmail

      public void setEmail(String email)
      Sets the email associated with the DeLP response.
      Parameters:
      email - The email associated with the DeLP response.
    • getCompcriterion

      public String getCompcriterion()
      Gets the completeness criterion specified in the DeLP response.
      Returns:
      The completeness criterion specified in the DeLP response.
    • setCompcriterion

      public void setCompcriterion(String compcriterion)
      Sets the completeness criterion specified in the DeLP response.
      Parameters:
      compcriterion - The completeness criterion specified in the DeLP response.
    • getKb

      public String getKb()
      Gets the knowledge base (KB) provided in the DeLP response.
      Returns:
      The knowledge base (KB) provided in the DeLP response.
    • setKb

      public void setKb(String kb)
      Sets the knowledge base (KB) provided in the DeLP response.
      Parameters:
      kb - The knowledge base (KB) provided in the DeLP response.
    • getQuery

      public String getQuery()
      Gets the query string in the DeLP response.
      Returns:
      The query string in the DeLP response.
    • setQuery

      public void setQuery(String query)
      Sets the query string in the DeLP response.
      Parameters:
      query - The query string in the DeLP response.
    • getTimeout

      public int getTimeout()
      Gets the timeout value (in seconds) specified in the DeLP response.
      Returns:
      The timeout value (in seconds) specified in the DeLP response.
    • setTimeout

      public void setTimeout(int timeout)
      Sets the timeout value (in seconds) specified in the DeLP response.
      Parameters:
      timeout - The timeout value (in seconds) specified in the DeLP response.
    • getAnswer

      public String getAnswer()
      Gets the answer provided by the DeLP response.
      Returns:
      The answer provided by the DeLP response.
    • setAnswer

      public void setAnswer(String answer)
      Sets the answer provided by the DeLP response.
      Parameters:
      answer - The answer provided by the DeLP response.
    • getTime

      public double getTime()
      Gets the time taken for the DeLP operation.
      Returns:
      The time taken for the DeLP operation.
    • setTime

      public void setTime(double time)
      Sets the time taken for the DeLP operation.
      Parameters:
      time - The time taken for the DeLP operation.
    • getUnit_time

      public String getUnit_time()
      Gets the unit time specified in the DeLP response.
      Returns:
      The unit time specified in the DeLP response.
    • setUnit_time

      public void setUnit_time(String unit_time)
      Sets the unit time specified in the DeLP response.
      Parameters:
      unit_time - The unit time specified in the DeLP response.
    • getStatus

      public String getStatus()
      Gets the status of the DeLP response.
      Returns:
      The status of the DeLP response.
    • setStatus

      public void setStatus(String status)
      Sets the status of the DeLP response.
      Parameters:
      status - The status of the DeLP response.
    • reply

      public DeLPResponse reply(String reply)
      Sets the reply message in the DeLP response.
      Parameters:
      reply - The reply message in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • email

      public DeLPResponse email(String email)
      Sets the email associated with the DeLP response.
      Parameters:
      email - The email associated with the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • compcriterion

      public DeLPResponse compcriterion(String compcriterion)
      Sets the completeness criterion specified in the DeLP response.
      Parameters:
      compcriterion - The completeness criterion specified in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • kb

      public DeLPResponse kb(String kb)
      Sets the knowledge base (KB) provided in the DeLP response.
      Parameters:
      kb - The knowledge base (KB) provided in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • query

      public DeLPResponse query(String query)
      Sets the query string in the DeLP response.
      Parameters:
      query - The query string in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • timeout

      public DeLPResponse timeout(int timeout)
      Sets the timeout value (in seconds) specified in the DeLP response.
      Parameters:
      timeout - The timeout value (in seconds) specified in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • answer

      public DeLPResponse answer(String answer)
      Sets the answer provided by the DeLP response.
      Parameters:
      answer - The answer provided by the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • time

      public DeLPResponse time(double time)
      Sets the time taken for the DeLP operation.
      Parameters:
      time - The time taken for the DeLP operation.
      Returns:
      The current instance of DeLPResponse.
    • unit_time

      public DeLPResponse unit_time(String unit_time)
      Sets the unit time specified in the DeLP response.
      Parameters:
      unit_time - The unit time specified in the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • status

      public DeLPResponse status(String status)
      Sets the status of the DeLP response.
      Parameters:
      status - The status of the DeLP response.
      Returns:
      The current instance of DeLPResponse.
    • 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