Class PafReasonerResponse
java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.paf.PafReasonerResponse
Response payload for the probabilistic argumentation framework (PAF) reasoner endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty PAF reasoner response.PafReasonerResponse(String reply, String email, int nr_of_arguments, List<Double> argument_probabilities, List<List<Integer>> attacks, List<Double> attack_probabilities, String semantics, String solver, int argument, String answer, double time, String unit_time, String status) Creates a PAF reasoner response with all response fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the answer string.intReturns the queried argument index.Returns the computed argument probabilities.Returns the attack probabilities.Returns the attack relations.getEmail()Returns the contact email.intReturns the number of arguments in the PAF.getReply()Returns the reply message.Returns the semantics used by the reasoner.Returns the solver used by the reasoner.Returns the response status.doublegetTime()Returns the computation time.Returns the time unit for the computation time.inthashCode()voidSets the answer string.voidsetArgument(int argument) Sets the queried argument index.voidsetArgument_probabilities(List<Double> argument_probabilities) Sets the computed argument probabilities.voidsetAttack_probabilities(List<Double> attack_probabilities) Sets the attack probabilities.voidsetAttacks(List<List<Integer>> attacks) Sets the attack relations.voidSets the contact email.voidsetNr_of_arguments(int nr_of_arguments) Sets the number of arguments in the PAF.voidSets the reply message.voidsetSemantics(String semantics) Sets the semantics used by the reasoner.voidSets the solver used by the reasoner.voidSets the response status.voidsetTime(double time) Sets the computation time.voidsetUnit_time(String unit_time) Sets the time unit for the computation time.toString()
-
Constructor Details
-
PafReasonerResponse
public PafReasonerResponse()Creates an empty PAF reasoner response. -
PafReasonerResponse
public PafReasonerResponse(String reply, String email, int nr_of_arguments, List<Double> argument_probabilities, List<List<Integer>> attacks, List<Double> attack_probabilities, String semantics, String solver, int argument, String answer, double time, String unit_time, String status) Creates a PAF reasoner response with all response fields.- Parameters:
reply- reply messageemail- contact emailnr_of_arguments- number of arguments in the PAFargument_probabilities- probabilities for each argumentattacks- attack relation listattack_probabilities- attack probabilities corresponding to attackssemantics- semantics used by the reasonersolver- solver used by the reasonerargument- queried argument indexanswer- result answer valuetime- computation timeunit_time- time unit for the computation timestatus- status of the reasoner response
-
-
Method Details
-
getReply
Returns the reply message.- Returns:
- reply message
-
setReply
Sets the reply message.- Parameters:
reply- reply message
-
getEmail
Returns the contact email.- Returns:
- contact email
-
setEmail
Sets the contact email.- Parameters:
email- contact email
-
getNr_of_arguments
public int getNr_of_arguments()Returns the number of arguments in the PAF.- Returns:
- number of arguments
-
setNr_of_arguments
public void setNr_of_arguments(int nr_of_arguments) Sets the number of arguments in the PAF.- Parameters:
nr_of_arguments- number of arguments
-
getArgument_probabilities
Returns the computed argument probabilities.- Returns:
- argument probabilities
-
setArgument_probabilities
Sets the computed argument probabilities.- Parameters:
argument_probabilities- argument probabilities
-
getAttacks
Returns the attack relations.- Returns:
- attack relations
-
setAttacks
Sets the attack relations.- Parameters:
attacks- attack relations
-
getAttack_probabilities
Returns the attack probabilities.- Returns:
- attack probabilities
-
setAttack_probabilities
Sets the attack probabilities.- Parameters:
attack_probabilities- attack probabilities
-
getSemantics
Returns the semantics used by the reasoner.- Returns:
- semantics
-
setSemantics
Sets the semantics used by the reasoner.- Parameters:
semantics- semantics
-
getSolver
Returns the solver used by the reasoner.- Returns:
- solver
-
setSolver
Sets the solver used by the reasoner.- Parameters:
solver- solver
-
getArgument
public int getArgument()Returns the queried argument index.- Returns:
- queried argument index
-
setArgument
public void setArgument(int argument) Sets the queried argument index.- Parameters:
argument- queried argument index
-
getAnswer
Returns the answer string.- Returns:
- answer string
-
setAnswer
Sets the answer string.- Parameters:
answer- answer string
-
getTime
public double getTime()Returns the computation time.- Returns:
- computation time
-
setTime
public void setTime(double time) Sets the computation time.- Parameters:
time- computation time
-
getUnit_time
Returns the time unit for the computation time.- Returns:
- time unit
-
setUnit_time
Sets the time unit for the computation time.- Parameters:
unit_time- time unit
-
getStatus
Returns the response status.- Returns:
- response status
-
setStatus
Sets the response status.- Parameters:
status- response status
-
equals
-
hashCode
public int hashCode() -
toString
-