Class SPASSMlReasoner

    • Constructor Detail

      • SPASSMlReasoner

        public SPASSMlReasoner​(String binaryLocation,
                               net.sf.tweety.commons.util.Shell bash)
        Constructs a new instance pointing to a specific SPASS Prover.
        Parameters:
        binaryLocation - of the SPASS executable on the hard drive
        bash - shell to run commands
      • SPASSMlReasoner

        public SPASSMlReasoner​(String binaryLocation)
        Constructs a new instance pointing to a specific SPASS
        Parameters:
        binaryLocation - of the SPASS executable on the hard drive
    • Method Detail

      • setCmdOptions

        public void setCmdOptions​(String s)
        Sets the command line options that will be used by SPASS when executing the query.
        Parameters:
        s - a string containing the command line arguments
      • query

        public Boolean query​(MlBeliefSet kb,
                             net.sf.tweety.logics.fol.syntax.FolFormula query)
        Specified by:
        query in interface net.sf.tweety.commons.QualitativeReasoner<MlBeliefSet,​net.sf.tweety.logics.fol.syntax.FolFormula>
        Specified by:
        query in interface net.sf.tweety.commons.Reasoner<Boolean,​MlBeliefSet,​net.sf.tweety.logics.fol.syntax.FolFormula>
        Specified by:
        query in class AbstractMlReasoner
      • queryProof

        public String queryProof​(MlBeliefSet kb,
                                 net.sf.tweety.commons.Formula query)
        Determines the answer wrt. to the given query and returns the proof (if applicable). May decrease SPASS's performance, use query(MlBeliefSet,FolFormula) if only a yes/no result is needed.
        Parameters:
        kb - a modal belief set
        query - a formula
        Returns:
        a string containing proof documentation