Class MlExample2

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

public class MlExample2 extends Object
More examples for testing ModalParser and ModalReasoner. Shows how to construct a modal logic knowledge base programmatically and how to query it using the SPASS reasoner.
Author:
Matthias Thimm
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Demonstrates the creation and reasoning over a modal logic belief set using the `MlParser` and `AbstractMlReasoner` classes.

    Methods inherited from class java.lang.Object

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

    • MlExample2

      public MlExample2()
      Default Constructor
  • Method Details

    • main

      public static void main(String[] args) throws ParserException, IOException
      Demonstrates the creation and reasoning over a modal logic belief set using the `MlParser` and `AbstractMlReasoner` classes.
      Parameters:
      args - command-line arguments (not used in this example).
      Throws:
      ParserException - if there is an error during parsing of the formulas.
      IOException - if there is an error accessing resources (e.g., the SPASS reasoner).