Class PafReasonerResponse

java.lang.Object
org.tweetyproject.web.services.Response
org.tweetyproject.web.services.paf.PafReasonerResponse

public class PafReasonerResponse extends Response
Response payload for the probabilistic argumentation framework (PAF) reasoner endpoint.
  • 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 message
      email - contact email
      nr_of_arguments - number of arguments in the PAF
      argument_probabilities - probabilities for each argument
      attacks - attack relation list
      attack_probabilities - attack probabilities corresponding to attacks
      semantics - semantics used by the reasoner
      solver - solver used by the reasoner
      argument - queried argument index
      answer - result answer value
      time - computation time
      unit_time - time unit for the computation time
      status - status of the reasoner response
  • Method Details

    • getReply

      public String getReply()
      Returns the reply message.
      Returns:
      reply message
    • setReply

      public void setReply(String reply)
      Sets the reply message.
      Parameters:
      reply - reply message
    • getEmail

      public String getEmail()
      Returns the contact email.
      Returns:
      contact email
    • setEmail

      public void setEmail(String email)
      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

      public List<Double> getArgument_probabilities()
      Returns the computed argument probabilities.
      Returns:
      argument probabilities
    • setArgument_probabilities

      public void setArgument_probabilities(List<Double> argument_probabilities)
      Sets the computed argument probabilities.
      Parameters:
      argument_probabilities - argument probabilities
    • getAttacks

      public List<List<Integer>> getAttacks()
      Returns the attack relations.
      Returns:
      attack relations
    • setAttacks

      public void setAttacks(List<List<Integer>> attacks)
      Sets the attack relations.
      Parameters:
      attacks - attack relations
    • getAttack_probabilities

      public List<Double> getAttack_probabilities()
      Returns the attack probabilities.
      Returns:
      attack probabilities
    • setAttack_probabilities

      public void setAttack_probabilities(List<Double> attack_probabilities)
      Sets the attack probabilities.
      Parameters:
      attack_probabilities - attack probabilities
    • getSemantics

      public String getSemantics()
      Returns the semantics used by the reasoner.
      Returns:
      semantics
    • setSemantics

      public void setSemantics(String semantics)
      Sets the semantics used by the reasoner.
      Parameters:
      semantics - semantics
    • getSolver

      public String getSolver()
      Returns the solver used by the reasoner.
      Returns:
      solver
    • setSolver

      public void setSolver(String solver)
      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

      public String getAnswer()
      Returns the answer string.
      Returns:
      answer string
    • setAnswer

      public void setAnswer(String answer)
      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

      public String getUnit_time()
      Returns the time unit for the computation time.
      Returns:
      time unit
    • setUnit_time

      public void setUnit_time(String unit_time)
      Sets the time unit for the computation time.
      Parameters:
      unit_time - time unit
    • getStatus

      public String getStatus()
      Returns the response status.
      Returns:
      response status
    • setStatus

      public void setStatus(String status)
      Sets the response status.
      Parameters:
      status - response status
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object