Class InconsistencyValueResponse
java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.incmes.InconsistencyValueResponse
Represents a response object for inconsistency value calculations.
The InconsistencyValueResponse class extends the Response class and encapsulates information
about the result of an inconsistency value calculation, including the reply status, user email,
inconsistency measure, knowledge base, response format, calculated value, execution time, and status.
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 email property of this response and returns the response object itself for method chaining.boolean
Sets the data format used in the inconsistency evaluation and returns this response object for method chaining.getEmail()
Retrieves the email address associated with the inconsistency report or request.Retrieves the data format used in the inconsistency evaluation.getKb()
Gets the knowledge base reference or identifier that was used during the evaluation of inconsistency.Retrieves the specific measure or metric related to the inconsistency detected.getReply()
Returns the reply associated with this response.Gets the current status of the response.double
getTime()
Retrieves the duration or time taken to analyze the inconsistency.double
getValue()
Retrieves the numeric value indicating the level of inconsistency found.int
hashCode()
Sets the knowledge base (kb) reference or identifier used during the evaluation of inconsistency and returns this response object for method chaining.Sets the measure or metric related to the inconsistency and returns this response object to facilitate method chaining.Sets the reply property of this response and returns the response object itself for method chaining.void
Sets the email address associated with the inconsistency report or request.void
Sets the data format used in the inconsistency evaluation.void
Sets the knowledge base reference or identifier used during the evaluation.void
setMeasure
(String measure) Sets the specific measure or metric related to the inconsistency detected.void
Sets the reply for this response.void
Sets the status for this response.void
setTime
(double time) Sets the duration or time taken to analyze the inconsistency.void
setValue
(double value) Sets the numeric value indicating the level of inconsistency.time
(double time) Sets the duration or time taken to evaluate the inconsistency and returns this response object for method chaining.toString()
value
(double value) Sets the numeric value indicating the level of inconsistency detected and returns this response object to facilitate method chaining.
-
Constructor Details
-
InconsistencyValueResponse
public InconsistencyValueResponse()Default Constructor -
InconsistencyValueResponse
public InconsistencyValueResponse(String reply, String email, String measure, String kb, String format, double value, double time) Constructs a fully initializedInconsistencyValueResponse
with the specified details.- Parameters:
reply
- A message or feedback related to the inconsistency.email
- The email address associated with the request or context.measure
- The specific measure or metric where inconsistency was noted.kb
- Knowledge base reference or identifier used in the assessment.format
- The data format or structure that was analyzed.value
- The numeric value indicating the level of inconsistency.time
- The duration or time taken to evaluate the inconsistency.
-
-
Method Details
-
getStatus
Gets the current status of the response.- Returns:
- The current status string which could indicate completion, error, or any other state of the response.
-
setStatus
Sets the status for this response.- Parameters:
status
- The string to be used as the status in the response.
-
getReply
Returns the reply associated with this response.- Returns:
- The reply string provided in the response.
-
setReply
Sets the reply for this response.- Parameters:
reply
- The text to be used as the reply in the response.
-
getEmail
Retrieves the email address associated with the inconsistency report or request.- Returns:
- The email address as a string.
-
setEmail
Sets the email address associated with the inconsistency report or request.- Parameters:
email
- A string representing the email address to be associated with the report.
-
getMeasure
Retrieves the specific measure or metric related to the inconsistency detected.- Returns:
- A string representing the measure or metric where the inconsistency was found.
-
setMeasure
Sets the specific measure or metric related to the inconsistency detected.- Parameters:
measure
- A string that specifies the measure or metric being addressed.
-
getKb
Gets the knowledge base reference or identifier that was used during the evaluation of inconsistency.- Returns:
- A string representing the knowledge base reference or identifier.
-
setKb
Sets the knowledge base reference or identifier used during the evaluation.- Parameters:
kb
- A string representing the knowledge base reference or identifier to be used for further evaluation.
-
getFormat
Retrieves the data format used in the inconsistency evaluation.- Returns:
- The data format as a string, which describes the structure or type of data analyzed.
-
setFormat
Sets the data format used in the inconsistency evaluation.- Parameters:
format
- A string representing the format to be used or that was used in analyzing the data.
-
getValue
public double getValue()Retrieves the numeric value indicating the level of inconsistency found.- Returns:
- A double value representing the degree of inconsistency.
-
setValue
public void setValue(double value) Sets the numeric value indicating the level of inconsistency.- Parameters:
value
- A double representing the new value of inconsistency to be recorded.
-
getTime
public double getTime()Retrieves the duration or time taken to analyze the inconsistency.- Returns:
- A double value representing the time in some units (e.g., milliseconds, seconds) taken to perform the analysis.
-
setTime
public void setTime(double time) Sets the duration or time taken to analyze the inconsistency.- Parameters:
time
- A double value representing the time in units taken for the inconsistency analysis.
-
reply
Sets the reply property of this response and returns the response object itself for method chaining.- Parameters:
reply
- A string containing the reply or feedback related to the inconsistency.- Returns:
- This
InconsistencyValueResponse
instance for chaining method calls.
-
email
Sets the email property of this response and returns the response object itself for method chaining.- Parameters:
email
- A string containing the email address associated with the inconsistency report.- Returns:
- This
InconsistencyValueResponse
instance for chaining method calls.
-
measure
Sets the measure or metric related to the inconsistency and returns this response object to facilitate method chaining.- Parameters:
measure
- A string specifying the measure or metric where the inconsistency was detected.- Returns:
- This
InconsistencyValueResponse
instance for chaining further method calls.
-
kb
Sets the knowledge base (kb) reference or identifier used during the evaluation of inconsistency and returns this response object for method chaining.- Parameters:
kb
- A string representing the knowledge base reference or identifier.- Returns:
- This
InconsistencyValueResponse
instance for chaining further method calls.
-
format
Sets the data format used in the inconsistency evaluation and returns this response object for method chaining.- Parameters:
format
- A string that describes the data format or structure analyzed.- Returns:
- This
InconsistencyValueResponse
instance for chaining further method calls.
-
value
Sets the numeric value indicating the level of inconsistency detected and returns this response object to facilitate method chaining.- Parameters:
value
- A double representing the degree of inconsistency measured.- Returns:
- This
InconsistencyValueResponse
instance for chaining further method calls.
-
time
Sets the duration or time taken to evaluate the inconsistency and returns this response object for method chaining.- Parameters:
time
- A double value representing the time in some unit (e.g., seconds, milliseconds) taken to perform the analysis.- Returns:
- This
InconsistencyValueResponse
instance for chaining further method calls.
-
equals
-
hashCode
-
toString
-