Class AbaReasonerCalleeFactory
java.lang.Object
org.tweetyproject.web.services.aba.AbaReasonerCalleeFactory
The AbaReasonerCalleeFactory class provides a factory for creating different
instances of Argumentation-Based Argumentation (ABA) reasoner callees based on
specific commands.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration of supported commands for ABA reasoner. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCallee
(AbaReasonerCalleeFactory.Command cmd, GeneralAbaReasoner<T> reasoner, AbaTheory<T> bbase, Assumption<T> a) Creates a new callee instance based on the provided command, ABA reasoner, ABA theory, and assumption.static AbaReasonerCalleeFactory.Command[]
Gets an array of all supported commands.
-
Constructor Details
-
AbaReasonerCalleeFactory
public AbaReasonerCalleeFactory()
-
-
Method Details
-
getCommands
Gets an array of all supported commands.- Returns:
- An array of Command enums
-
getCallee
public static <T extends Formula> Callee getCallee(AbaReasonerCalleeFactory.Command cmd, GeneralAbaReasoner<T> reasoner, AbaTheory<T> bbase, Assumption<T> a) Creates a new callee instance based on the provided command, ABA reasoner, ABA theory, and assumption.- Type Parameters:
T
- The type of formula used in ABA- Parameters:
cmd
- The command for which the callee is createdreasoner
- The ABA reasoner instancebbase
- The ABA theory instancea
- The assumption- Returns:
- The created callee instance
- Throws:
RuntimeException
- If the command is not found
-