Class DungReasonerCalleeFactory

java.lang.Object
org.tweetyproject.web.services.dung.DungReasonerCalleeFactory

public class DungReasonerCalleeFactory extends Object
The DungReasonerCalleeFactory class is responsible for creating instances of Callee based on the specified Command, AbstractExtensionReasoner, and DungTheory parameters. It also defines an enumeration of commands with associated IDs and labels.
  • Constructor Details

    • DungReasonerCalleeFactory

      public DungReasonerCalleeFactory()
  • Method Details

    • getCommands

      public static DungReasonerCalleeFactory.Command[] getCommands()
      Retrieves an array of all available Command enums.
      Returns:
      An array of Command enums
    • getCallee

      public static Callee getCallee(DungReasonerCalleeFactory.Command cmd, AbstractExtensionReasoner reasoner, DungTheory bbase)
      Creates and returns a Callee instance based on the provided Command, AbstractExtensionReasoner, and DungTheory parameters.
      Parameters:
      cmd - The command to be executed
      reasoner - The AbstractExtensionReasoner to be used
      bbase - The DungTheory to be processed
      Returns:
      A Callee instance corresponding to the specified command
      Throws:
      RuntimeException - If the specified command is not found