Class DeLPCallee

java.lang.Object
org.tweetyproject.web.services.Callee
org.tweetyproject.web.services.delp.DeLPCallee
All Implemented Interfaces:
Callable

public class DeLPCallee extends Callee
The DeLPCallee class represents a callee for querying a Defeasible Logic Program (DeLP) using a specified DefeasibleLogicProgram, DelpReasoner, and Formula. This class extends the Callee class and implements the call() method to execute the query operation using the provided DeLP and Formula with a DelpReasoner.
  • Constructor Details

    • DeLPCallee

      public DeLPCallee(DefeasibleLogicProgram delp, DelpReasoner reasoner, Formula f)
      Constructs a new DeLPCallee with the specified DefeasibleLogicProgram, DelpReasoner, and Formula.
      Parameters:
      delp - The DefeasibleLogicProgram to be queried
      reasoner - The DelpReasoner used for querying the DefeasibleLogicProgram
      f - The Formula representing the query
  • Method Details

    • call

      public DelpAnswer.Type call() throws Exception
      Executes the query operation using the specified DefeasibleLogicProgram, DelpReasoner, and Formula.
      Specified by:
      call in interface Callable
      Overrides:
      call in class Callee
      Returns:
      The result of the query operation, represented by DelpAnswer.Type
      Throws:
      Exception - If an error occurs during the query operation