Package net.sf.tweety.logics.qbf.syntax
Class ExistsQuantifiedFormula
- java.lang.Object
-
- net.sf.tweety.logics.pl.syntax.PlFormula
-
- net.sf.tweety.logics.qbf.syntax.ExistsQuantifiedFormula
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula,net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Invertable,net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
public class ExistsQuantifiedFormula extends net.sf.tweety.logics.pl.syntax.PlFormulaThis class represents existential quantification for boolean formulas.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description ExistsQuantifiedFormula(net.sf.tweety.logics.pl.syntax.PlFormula f, Set<net.sf.tweety.logics.pl.syntax.Proposition> variables)Create a new existential boolean quantification.ExistsQuantifiedFormula(net.sf.tweety.logics.pl.syntax.PlFormula f, net.sf.tweety.logics.pl.syntax.Proposition variable)Create a new existential boolean quantification.ExistsQuantifiedFormula(ExistsQuantifiedFormula other)Create a new existential boolean quantification.
-
Method Summary
Modifier and Type Method Description net.sf.tweety.logics.pl.syntax.PlFormulaclone()net.sf.tweety.logics.pl.syntax.PlFormulacollapseAssociativeFormulas()booleanequals(Object obj)Set<net.sf.tweety.logics.pl.syntax.Proposition>getAtoms()net.sf.tweety.logics.pl.syntax.PlFormulagetFormula()Set<net.sf.tweety.logics.pl.syntax.PlFormula>getLiterals()Set<net.sf.tweety.logics.pl.semantics.PossibleWorld>getModels(net.sf.tweety.logics.pl.syntax.PlSignature sig)Set<net.sf.tweety.logics.pl.syntax.PlPredicate>getPredicates()Set<net.sf.tweety.logics.pl.syntax.Proposition>getQuantifierVariables()net.sf.tweety.logics.pl.syntax.PlSignaturegetSignature()inthashCode()intnumberOfOccurrences(net.sf.tweety.logics.pl.syntax.Proposition p)net.sf.tweety.logics.pl.syntax.PlFormulareplace(net.sf.tweety.logics.pl.syntax.Proposition p, net.sf.tweety.logics.pl.syntax.PlFormula f, int i)net.sf.tweety.logics.pl.syntax.ConjunctiontoCnf()In this case, this method returns this quantified boolean formula's cnf kernel.net.sf.tweety.logics.pl.syntax.PlFormulatoNnf()StringtoString()net.sf.tweety.logics.pl.syntax.PlFormulatrim()
-
-
-
Constructor Detail
-
ExistsQuantifiedFormula
public ExistsQuantifiedFormula(net.sf.tweety.logics.pl.syntax.PlFormula f, Set<net.sf.tweety.logics.pl.syntax.Proposition> variables)Create a new existential boolean quantification.- Parameters:
f- inner formulavariables- quantifier variables
-
ExistsQuantifiedFormula
public ExistsQuantifiedFormula(net.sf.tweety.logics.pl.syntax.PlFormula f, net.sf.tweety.logics.pl.syntax.Proposition variable)Create a new existential boolean quantification.- Parameters:
f- inner formulavariable- quantifier variable
-
ExistsQuantifiedFormula
public ExistsQuantifiedFormula(ExistsQuantifiedFormula other)
Create a new existential boolean quantification.- Parameters:
other- other existential quantified formula
-
-
Method Detail
-
getQuantifierVariables
public Set<net.sf.tweety.logics.pl.syntax.Proposition> getQuantifierVariables()
- Returns:
- the quantifier variables (propositions)
-
getFormula
public net.sf.tweety.logics.pl.syntax.PlFormula getFormula()
- Returns:
- the quantified formula
-
getAtoms
public Set<net.sf.tweety.logics.pl.syntax.Proposition> getAtoms()
- Specified by:
getAtomsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getAtomsin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
getLiterals
public Set<net.sf.tweety.logics.pl.syntax.PlFormula> getLiterals()
- Specified by:
getLiteralsin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
collapseAssociativeFormulas
public net.sf.tweety.logics.pl.syntax.PlFormula collapseAssociativeFormulas()
- Specified by:
collapseAssociativeFormulasin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
getPredicates
public Set<net.sf.tweety.logics.pl.syntax.PlPredicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
trim
public net.sf.tweety.logics.pl.syntax.PlFormula trim()
- Specified by:
trimin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
toNnf
public net.sf.tweety.logics.pl.syntax.PlFormula toNnf()
- Specified by:
toNnfin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
toCnf
public net.sf.tweety.logics.pl.syntax.Conjunction toCnf()
In this case, this method returns this quantified boolean formula's cnf kernel.- Specified by:
toCnfin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
getModels
public Set<net.sf.tweety.logics.pl.semantics.PossibleWorld> getModels(net.sf.tweety.logics.pl.syntax.PlSignature sig)
- Specified by:
getModelsin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
numberOfOccurrences
public int numberOfOccurrences(net.sf.tweety.logics.pl.syntax.Proposition p)
- Specified by:
numberOfOccurrencesin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
replace
public net.sf.tweety.logics.pl.syntax.PlFormula replace(net.sf.tweety.logics.pl.syntax.Proposition p, net.sf.tweety.logics.pl.syntax.PlFormula f, int i)- Specified by:
replacein classnet.sf.tweety.logics.pl.syntax.PlFormula
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
equalsin classnet.sf.tweety.logics.pl.syntax.PlFormula
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
hashCodein classnet.sf.tweety.logics.pl.syntax.PlFormula
-
clone
public net.sf.tweety.logics.pl.syntax.PlFormula clone()
- Specified by:
clonein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
clonein classnet.sf.tweety.logics.pl.syntax.PlFormula
-
getSignature
public net.sf.tweety.logics.pl.syntax.PlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Overrides:
getSignaturein classnet.sf.tweety.logics.pl.syntax.PlFormula
-
-