Class CausalReasonerPost
java.lang.Object
org.tweetyproject.web.services.causal.CausalReasonerPost
Request to execute a
cmd with a AbstractCausalReasoner- Author:
- Oleksandr Dzhychko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes which command should be executed by the causal reasoner -
Constructor Summary
ConstructorsConstructorDescriptionCausalReasonerPost(CausalReasonerPost.Cmd cmd, String email, String kb, String observations, String conclusionsFilter, int timeout, String unit_timeout) Initialize new CausalReasonerPost -
Method Summary
Modifier and TypeMethodDescriptiongetCmd()Returns the command to execute.Returns the conclusions filter string.getEmail()Returns the user email for the request.getKb()Returns the knowledge base string.Returns the observations string.intReturns the request timeout.Returns the timeout unit.voidSets the command to execute.voidsetConclusionsFilter(String conclusionsFilter) Sets the conclusions filter string.voidSets the user email for the request.voidSets the knowledge base string.voidsetObservations(String observations) Sets the observations string.voidsetTimeout(int timeout) Sets the request timeout.voidsetUnit_timeout(String unit_timeout) Sets the timeout unit.
-
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 stringemail- user emailkb- the causal knowledge baseobservations- the observationsconclusionsFilter- conclusion filter approachtimeout- the timeoutunit_timeout- unit of timeout
-
-
Method Details
-
getCmd
Returns the command to execute.- Returns:
- causal reasoner command
-
setCmd
Sets the command to execute.- Parameters:
cmd- causal reasoner command
-
getEmail
Returns the user email for the request.- Returns:
- user email
-
setEmail
Sets the user email for the request.- Parameters:
email- user email
-
getKb
Returns the knowledge base string.- Returns:
- knowledge base
-
setKb
Sets the knowledge base string.- Parameters:
kb- knowledge base
-
getObservations
Returns the observations string.- Returns:
- observations
-
setObservations
Sets the observations string.- Parameters:
observations- observations
-
getConclusionsFilter
Returns the conclusions filter string.- Returns:
- conclusions filter
-
setConclusionsFilter
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
Returns the timeout unit.- Returns:
- timeout unit
-
setUnit_timeout
Sets the timeout unit.- Parameters:
unit_timeout- timeout unit
-