Class MleanCoPReasoner

    • Constructor Summary

      Constructors 
      Constructor Description
      MleanCoPReasoner​(java.lang.String location)
      Constructs a new instance pointing to a specific MleanCoProver.
      MleanCoPReasoner​(java.lang.String location, Shell bash)
      Constructs a new instance pointing to a specific MleanCoProver.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getScriptLocation()
      Get the mleancop.sh path.
      java.lang.Boolean query​(MlBeliefSet beliefbase, FolFormula formula)
      Queries the given belief base for the given formula.
      void setScriptLocation​(java.lang.String location)
      Set the mleancop.sh path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scriptLocation

        private java.lang.String scriptLocation
        String representation of the mleancop.sh path. This shell script specifies the prolog system, prover location and modal logic (D, T, S4 or S5) and domain (constant, cumulative or varying) that will be used.
        NOTE: Make sure to set the PROVER_PATH variable in the mleancop.sh script to the location of the mleancop files (= the prolog files).
      • bash

        private Shell bash
        Shell to run MleanCoP.
    • Constructor Detail

      • MleanCoPReasoner

        public MleanCoPReasoner​(java.lang.String location,
                                Shell bash)
        Constructs a new instance pointing to a specific MleanCoProver.
        Parameters:
        location - mleancop.sh path on the hard drive
        bash - shell to run commands
      • MleanCoPReasoner

        public MleanCoPReasoner​(java.lang.String location)
        Constructs a new instance pointing to a specific MleanCoProver.
        Parameters:
        location - mleancop.sh path on the hard drive
    • Method Detail

      • getScriptLocation

        public java.lang.String getScriptLocation()
        Get the mleancop.sh path.
        Returns:
        location of MleanCOP shell script
      • setScriptLocation

        public void setScriptLocation​(java.lang.String location)
        Set the mleancop.sh path.
        Parameters:
        location - of MleanCOP shell script