Class CausalReasonerResponse
java.lang.Object
org.tweetyproject.web.services.causal.CausalReasonerResponse
Response to
CausalReasonerPost- Author:
- Oleksandr Dzhychko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for response status -
Constructor Summary
ConstructorsConstructorDescriptionCausalReasonerResponse(String reply, String email, double time, String unit_timeout, CausalReasonerResponse.Status status) Initialize a new CausalReasonerResponse -
Method Summary
-
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 replyemail- the user emailtime- the computation timeunit_timeout- the unit of timestatus- the response status
-
-
Method Details
-
getReply
Returns the execution reply.- Returns:
- reply message, or null if unavailable
-
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
Returns the time unit for the execution time.- Returns:
- time unit string
-
getStatus
Returns the status of the response.- Returns:
- response status
-