Class MlExample

java.lang.Object
org.tweetyproject.logics.ml.examples.MlExample

public class MlExample extends Object
Some examples for testing ModalParser and NaiveModalReasoner. Shows how to construct a modal logic knowledge base programmatically and how to query it using the naive reasoner.
Author:
Anna Gessler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Demonstrates the parsing and reasoning capabilities of the `MlParser` and `SimpleMlReasoner` classes.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MlExample

      public MlExample()
  • Method Details

    • main

      public static void main(String[] args) throws ParserException, IOException
      Demonstrates the parsing and reasoning capabilities of the `MlParser` and `SimpleMlReasoner` classes.
      Parameters:
      args - command-line arguments (not used in this example).
      Throws:
      ParserException - if there is an error during parsing of the belief bases or formulas.
      IOException - if there is an error reading from the files.