Class CausalReasonerResponse

java.lang.Object
org.tweetyproject.web.services.causal.CausalReasonerResponse

public final class CausalReasonerResponse extends Object
Response to CausalReasonerPost
Author:
Oleksandr Dzhychko
  • Constructor Details

    • CausalReasonerResponse

      public CausalReasonerResponse(String reply, String email, double time, @NonNull String unit_timeout, CausalReasonerResponse.Status status)
      Initialize a new CausalReasonerResponse
      Parameters:
      reply - the reply
      email - the user email
      time - the computation time
      unit_timeout - the unit of time
      status - the response status
  • Method Details

    • getReply

      public String getReply()
      Returns the execution reply.
      Returns:
      reply message, or null if unavailable
    • getEmail

      public String getEmail()
      Returns the email address associated with this response.
      Returns:
      user email
    • getTime

      public double getTime()
      Returns the time taken to execute the request.
      Returns:
      computation time
    • getUnit_timeout

      @NonNull public String getUnit_timeout()
      Returns the time unit for the execution time.
      Returns:
      time unit string
    • getStatus

      public CausalReasonerResponse.Status getStatus()
      Returns the status of the response.
      Returns:
      response status