Class CausalReasonerPost

java.lang.Object
org.tweetyproject.web.services.causal.CausalReasonerPost

public final class CausalReasonerPost extends Object
Request to execute a cmd with a AbstractCausalReasoner
Author:
Oleksandr Dzhychko
  • Constructor Details

    • CausalReasonerPost

      public CausalReasonerPost(CausalReasonerPost.Cmd cmd, String email, String kb, String observations, String conclusionsFilter, int timeout, String unit_timeout)
      Initialize new CausalReasonerPost
      Parameters:
      cmd - the command string
      email - user email
      kb - the causal knowledge base
      observations - the observations
      conclusionsFilter - conclusion filter approach
      timeout - the timeout
      unit_timeout - unit of timeout
  • Method Details

    • getCmd

      public CausalReasonerPost.Cmd getCmd()
      Returns the command to execute.
      Returns:
      causal reasoner command
    • setCmd

      public void setCmd(CausalReasonerPost.Cmd cmd)
      Sets the command to execute.
      Parameters:
      cmd - causal reasoner command
    • getEmail

      public String getEmail()
      Returns the user email for the request.
      Returns:
      user email
    • setEmail

      public void setEmail(String email)
      Sets the user email for the request.
      Parameters:
      email - user email
    • getKb

      public String getKb()
      Returns the knowledge base string.
      Returns:
      knowledge base
    • setKb

      public void setKb(String kb)
      Sets the knowledge base string.
      Parameters:
      kb - knowledge base
    • getObservations

      public String getObservations()
      Returns the observations string.
      Returns:
      observations
    • setObservations

      public void setObservations(String observations)
      Sets the observations string.
      Parameters:
      observations - observations
    • getConclusionsFilter

      public String getConclusionsFilter()
      Returns the conclusions filter string.
      Returns:
      conclusions filter
    • setConclusionsFilter

      public void setConclusionsFilter(String conclusionsFilter)
      Sets the conclusions filter string.
      Parameters:
      conclusionsFilter - conclusions filter
    • getTimeout

      public int getTimeout()
      Returns the request timeout.
      Returns:
      timeout in seconds
    • setTimeout

      public void setTimeout(int timeout)
      Sets the request timeout.
      Parameters:
      timeout - timeout in seconds
    • getUnit_timeout

      public String getUnit_timeout()
      Returns the timeout unit.
      Returns:
      timeout unit
    • setUnit_timeout

      public void setUnit_timeout(String unit_timeout)
      Sets the timeout unit.
      Parameters:
      unit_timeout - timeout unit