Class DeLPPost
java.lang.Object
org.tweetyproject.web.services.delp.DeLPPost
The DeLPPost class represents a data structure for holding information
related to a Defeasible Logic Program (DeLP) request sent via HTTP POST.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the command type for the DeLP request.compcriterion
(String compcriterion) Sets the completeness criterion specified in the DeLP request.Sets the email associated with the DeLP request.boolean
getCmd()
Gets the command type for the DeLP request.Gets the completeness criterion specified in the DeLP request.getEmail()
Gets the email associated with the DeLP request.getKb()
Gets the knowledge base (KB) provided in the DeLP request.getQuery()
Gets the query string in the DeLP request.int
Gets the timeout value (in seconds) specified in the DeLP request.Gets the unit timeout value specified in the DeLP request.int
hashCode()
Sets the knowledge base (KB) provided in the DeLP request.Sets the query string in the DeLP request.void
Sets the command type for the DeLP request.void
setCompcriterion
(String compcriterion) Sets the completeness criterion specified in the DeLP request.void
Sets the email associated with the DeLP request.void
Sets the knowledge base (KB) provided in the DeLP request.void
Sets the query string in the DeLP request.void
setTimeout
(int timeout) Sets the timeout value (in seconds) specified in the DeLP request.void
setUnit_timeout
(String unit_timeout) Sets the unit timeout value specified in the DeLP request.timeout
(int timeout) Sets the timeout value (in seconds) specified in the DeLP request.toString()
unit_timeout
(String unit_timeout) Sets the unit timeout value specified in the DeLP request.
-
Constructor Details
-
DeLPPost
public DeLPPost()Default constructor for DeLPPost. -
DeLPPost
public DeLPPost(String cmd, String email, String compcriterion, String kb, String query, int timeout, String unit_timeout) Parameterized constructor for DeLPPost.- Parameters:
cmd
- The command typeemail
- The email associated with the requestcompcriterion
- The completeness criterionkb
- The knowledge base (KB)query
- The query stringtimeout
- The timeout value (in seconds)unit_timeout
- The unit timeout value
-
-
Method Details
-
getCmd
Gets the command type for the DeLP request.- Returns:
- The command type for the DeLP request.
-
setCmd
Sets the command type for the DeLP request.- Parameters:
cmd
- The command type for the DeLP request.
-
getEmail
Gets the email associated with the DeLP request.- Returns:
- The email associated with the DeLP request.
-
setEmail
Sets the email associated with the DeLP request.- Parameters:
email
- The email associated with the DeLP request.
-
getCompcriterion
Gets the completeness criterion specified in the DeLP request.- Returns:
- The completeness criterion specified in the DeLP request.
-
setCompcriterion
Sets the completeness criterion specified in the DeLP request.- Parameters:
compcriterion
- The completeness criterion specified in the DeLP request.
-
getKb
Gets the knowledge base (KB) provided in the DeLP request.- Returns:
- The knowledge base (KB) provided in the DeLP request.
-
setKb
Sets the knowledge base (KB) provided in the DeLP request.- Parameters:
kb
- The knowledge base (KB) provided in the DeLP request.
-
getQuery
Gets the query string in the DeLP request.- Returns:
- The query string in the DeLP request.
-
setQuery
Sets the query string in the DeLP request.- Parameters:
query
- The query string in the DeLP request.
-
getTimeout
public int getTimeout()Gets the timeout value (in seconds) specified in the DeLP request.- Returns:
- The timeout value (in seconds) specified in the DeLP request.
-
setTimeout
public void setTimeout(int timeout) Sets the timeout value (in seconds) specified in the DeLP request.- Parameters:
timeout
- The timeout value (in seconds) specified in the DeLP request.
-
getUnit_timeout
Gets the unit timeout value specified in the DeLP request.- Returns:
- The unit timeout value specified in the DeLP request.
-
setUnit_timeout
Sets the unit timeout value specified in the DeLP request.- Parameters:
unit_timeout
- The unit timeout value specified in the DeLP request.
-
cmd
-
email
-
compcriterion
-
kb
-
query
-
timeout
Sets the timeout value (in seconds) specified in the DeLP request.- Parameters:
timeout
- The timeout value (in seconds) specified in the DeLP request.- Returns:
- The current instance of DeLPPost.
-
unit_timeout
-
equals
-
hashCode
-
toString
-