Class CommandLineInterface

java.lang.Object
org.tweetyproject.arg.adf.cli.CommandLineInterface

public class CommandLineInterface extends Object
This class provides a command-line interface for working with Abstract Dialectical Frameworks (ADFs). It allows users to specify an ADF instance via a file and apply different reasoning semantics to it. The program then prints out the interpretations based on the specified reasoning semantics.

Supported semantics include:

  • mod: Model semantics
  • nai: Naive semantics
  • adm: Admissible semantics
  • com: Complete semantics

Usage: java -jar jadf.jar <file> <sem>

<file> : Input filename for the ADF instance

<sem> : ADF semantics. Options: mod | nai | adm | com

Example: java -jar jadf.jar myADFInstance.txt mod

Author:
Mathias Hofer
  • Constructor Details

    • CommandLineInterface

      public CommandLineInterface()
  • Method Details

    • main

      public static void main(String[] args)
      The main method serves as the entry point for the command-line interface. It takes two arguments:
      • <file> - The input file containing the ADF instance
      • <sem> - The ADF semantics to apply (e.g., mod, nai, adm, com)
      It then parses the ADF instance, applies the specified reasoning semantics, and prints out the interpretations based on the model iterator.
      Parameters:
      args - Command-line arguments: the input file and the semantics type.