Class InconsistencyPost
java.lang.Object
org.tweetyproject.web.services.Post
org.tweetyproject.web.services.incmes.InconsistencyPost
Represents a data transfer object for inconsistency calculation requests.
The InconsistencyPost class extends the Post class and encapsulates information
about the parameters required for an inconsistency calculation, including the command,
user email, inconsistency measure, knowledge base, response format, timeout, and unit timeout.
This class provides getter and setter methods for accessing and modifying its attributes.
Additionally, convenience methods are included for chaining attribute setting operations.
The class overrides the equals, hashCode, and toString methods for proper comparison and string representation.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the command for this post and returns this instance to allow method chaining.Sets the email address associated with this post and returns this instance for method chaining.boolean
Determines whether this Post object is equal to another object.Sets the format of the data to be analyzed and returns this instance for method chaining.getCmd()
Returns the command associated with this post.getEmail()
Returns the email address associated with this post.Returns the data format for this post.getKb()
Returns the knowledge base identifier associated with this post.Returns the measure associated with this post.int
Returns the timeout value for this post.Returns the unit of time for the timeout of this post.int
hashCode()
Sets the knowledge base identifier (kb) used in the analysis and returns this instance for method chaining.Sets the measure key, which specifies the metric or parameter to be analyzed, and returns this instance for method chaining.void
Sets the command for this post.void
Sets the email address for this post.void
Sets the data format for this post.void
Sets the knowledge base identifier for this post.void
setMeasure
(String measure) Sets the measure for this post.void
setTimeout
(int timeout) Sets the timeout value for this post.void
setUnit_timeout
(String unit_timeout) Sets the unit of time for the timeout of this post.timeout
(int timeout) Sets the timeout for the operation specified in the post and returns this instance for method chaining.toString()
Returns a string representation of this Post object.unit_timeout
(String unit_timeout) Sets the unit of time for the timeout and returns this instance for method chaining.
-
Constructor Details
-
InconsistencyPost
public InconsistencyPost()Constructs an emptyInconsistencyPost
. Use this constructor to create a post object that will be populated later. -
InconsistencyPost
public InconsistencyPost(String cmd, String email, String measure, String kb, String format, int timeout, String unit_timeout) Constructs anInconsistencyPost
with specified values for each field.- Parameters:
cmd
- The command to be executed during the analysis.email
- The email address associated with this post.measure
- The specific measure or metric to be analyzed.kb
- Knowledge base reference or identifier used during the analysis.format
- The data format or structure that is being analyzed.timeout
- The maximum allowed duration for the analysis to complete.unit_timeout
- The unit of time used for the timeout, such as seconds or minutes.
-
-
Method Details
-
getCmd
-
setCmd
-
getEmail
Returns the email address associated with this post.- Returns:
- The email as a string.
-
setEmail
Sets the email address for this post.- Parameters:
email
- The email string to be set.
-
getMeasure
Returns the measure associated with this post.- Returns:
- The measure as a string.
-
setMeasure
Sets the measure for this post.- Parameters:
measure
- The measure string to be set.
-
getKb
Returns the knowledge base identifier associated with this post.- Returns:
- The kb identifier as a string.
-
setKb
Sets the knowledge base identifier for this post.- Parameters:
kb
- The kb string to be set.
-
getFormat
-
setFormat
Sets the data format for this post.- Parameters:
format
- The format string to be set.
-
getTimeout
public int getTimeout()Returns the timeout value for this post.- Returns:
- The timeout as an integer.
-
setTimeout
public void setTimeout(int timeout) Sets the timeout value for this post.- Parameters:
timeout
- The timeout value to be set.
-
getUnit_timeout
Returns the unit of time for the timeout of this post.- Returns:
- The unit of timeout as a string.
-
setUnit_timeout
Sets the unit of time for the timeout of this post.- Parameters:
unit_timeout
- The unit of timeout to be set.
-
cmd
Sets the command for this post and returns this instance to allow method chaining. -
email
Sets the email address associated with this post and returns this instance for method chaining.- Parameters:
email
- The email address related to the user or context of the post.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
measure
Sets the measure key, which specifies the metric or parameter to be analyzed, and returns this instance for method chaining.- Parameters:
measure
- The measure or metric key that is the focus of the post.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
kb
Sets the knowledge base identifier (kb) used in the analysis and returns this instance for method chaining.- Parameters:
kb
- The identifier for the knowledge base relevant to the post.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
format
Sets the format of the data to be analyzed and returns this instance for method chaining.- Parameters:
format
- The data format, detailing the structure or type of data that the post concerns.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
timeout
Sets the timeout for the operation specified in the post and returns this instance for method chaining.- Parameters:
timeout
- The maximum amount of time (in the unit specified byunit_timeout
) that the operation should take.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
unit_timeout
Sets the unit of time for the timeout and returns this instance for method chaining.- Parameters:
unit_timeout
- The unit of time for the timeout, such as seconds or minutes.- Returns:
- This
InconsistencyPost
instance, to facilitate chaining multiple settings calls.
-
equals
Description copied from class:Post
Determines whether this Post object is equal to another object. Two Post objects are considered equal if their command strings are the same. -
hashCode
-
toString
-