Class DeLPResponse
java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.delp.DeLPResponse
The DeLPResponse class extends the Response class and represents
a response containing information related to a Defeasible Logic Program
(DeLP) operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the answer provided by the DeLP response.compcriterion
(String compcriterion) Sets the completeness criterion specified in the DeLP response.Sets the email associated with the DeLP response.boolean
Gets the answer provided by the DeLP response.Gets the completeness criterion specified in the DeLP response.getEmail()
Gets the email associated with the DeLP response.getKb()
Gets the knowledge base (KB) provided in the DeLP response.getQuery()
Gets the query string in the DeLP response.getReply()
Gets the reply message in the DeLP response.Gets the status of the DeLP response.double
getTime()
Gets the time taken for the DeLP operation.int
Gets the timeout value (in seconds) specified in the DeLP response.Gets the unit time specified in the DeLP response.int
hashCode()
Sets the knowledge base (KB) provided in the DeLP response.Sets the query string in the DeLP response.Sets the reply message in the DeLP response.void
Sets the answer provided by the DeLP response.void
setCompcriterion
(String compcriterion) Sets the completeness criterion specified in the DeLP response.void
Sets the email associated with the DeLP response.void
Sets the knowledge base (KB) provided in the DeLP response.void
Sets the query string in the DeLP response.void
Sets the reply message in the DeLP response.void
Sets the status of the DeLP response.void
setTime
(double time) Sets the time taken for the DeLP operation.void
setTimeout
(int timeout) Sets the timeout value (in seconds) specified in the DeLP response.void
setUnit_time
(String unit_time) Sets the unit time specified in the DeLP response.Sets the status of the DeLP response.time
(double time) Sets the time taken for the DeLP operation.timeout
(int timeout) Sets the timeout value (in seconds) specified in the DeLP response.toString()
Sets the unit time specified in the DeLP response.
-
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 messageemail
- The email associated with the responsecompcriterion
- The completeness criterionkb
- The knowledge base (KB)query
- The query stringtimeout
- The timeout value (in seconds)answer
- The answer providedtime
- The time taken for the operationunit_time
- The unit time specifiedstatus
- The status of the response
-
-
Method Details
-
getReply
Gets the reply message in the DeLP response.- Returns:
- The reply message in the DeLP response.
-
setReply
Sets the reply message in the DeLP response.- Parameters:
reply
- The reply message in the DeLP response.
-
getEmail
Gets the email associated with the DeLP response.- Returns:
- The email associated with the DeLP response.
-
setEmail
Sets the email associated with the DeLP response.- Parameters:
email
- The email associated with the DeLP response.
-
getCompcriterion
Gets the completeness criterion specified in the DeLP response.- Returns:
- The completeness criterion specified in the DeLP response.
-
setCompcriterion
Sets the completeness criterion specified in the DeLP response.- Parameters:
compcriterion
- The completeness criterion specified in the DeLP response.
-
getKb
Gets the knowledge base (KB) provided in the DeLP response.- Returns:
- The knowledge base (KB) provided in the DeLP response.
-
setKb
Sets the knowledge base (KB) provided in the DeLP response.- Parameters:
kb
- The knowledge base (KB) provided in the DeLP response.
-
getQuery
Gets the query string in the DeLP response.- Returns:
- The query string in the DeLP response.
-
setQuery
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
Gets the answer provided by the DeLP response.- Returns:
- The answer provided by the DeLP response.
-
setAnswer
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
Gets the unit time specified in the DeLP response.- Returns:
- The unit time specified in the DeLP response.
-
setUnit_time
Sets the unit time specified in the DeLP response.- Parameters:
unit_time
- The unit time specified in the DeLP response.
-
getStatus
Gets the status of the DeLP response.- Returns:
- The status of the DeLP response.
-
setStatus
Sets the status of the DeLP response.- Parameters:
status
- The status of the DeLP response.
-
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
Sets the email associated with the DeLP response.- Parameters:
email
- The email associated with the DeLP response.- Returns:
- The current instance of DeLPResponse.
-
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
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
Sets the query string in the DeLP response.- Parameters:
query
- The query string in the DeLP response.- Returns:
- The current instance of DeLPResponse.
-
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
Sets the answer provided by the DeLP response.- Parameters:
answer
- The answer provided by the DeLP response.- Returns:
- The current instance of DeLPResponse.
-
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
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
Sets the status of the DeLP response.- Parameters:
status
- The status of the DeLP response.- Returns:
- The current instance of DeLPResponse.
-
equals
-
hashCode
-
toString
-