public class StaticLaw extends CLaw
headFormula, ifFormula, requirements| Constructor and Description |
|---|
StaticLaw()
Creates an empty static law.
|
StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula)
Creates an empty static law of the form caused headFormula if True
|
StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula)
Creates an empty static law of the form caused headFormula if ifFormula
|
StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
Set<GroundingRequirement> requirements)
Creates an empty static law of the form caused headFormula if ifFormula
requires requirements
|
StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
Set<GroundingRequirement> requirements)
Creates an empty static law of the form caused headFormula if True
requires requirements
|
| Modifier and Type | Method and Description |
|---|---|
Set<CLaw> |
getAllGrounded()
Returns the set of all grounded instances of this causal law.
|
Set<net.sf.tweety.logics.fol.syntax.FOLAtom> |
getAtoms()
Returns the set of propositions in all formulas in this law.
|
Set<net.sf.tweety.logics.fol.syntax.FolFormula> |
getFormulas()
Returns the set of formulas contained in this causal law, e.g.
|
net.sf.tweety.commons.Signature |
getSignature() |
boolean |
isDefinite()
Returns true iff this law is definite.
|
Set<CLaw> |
toDefinite()
Returns an equivalent definite causal law.
|
String |
toString() |
addGroundingRequirement, getHeadFormula, getIfFormula, isConjunctiveClause, isGround, isValidDefiniteHeadpublic StaticLaw()
public StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula)
headFormula - public StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
Set<GroundingRequirement> requirements)
headFormula - requirements - public StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula)
headFormula - ifFormula - public StaticLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
Set<GroundingRequirement> requirements)
headFormula - ifFormula - requirements - public boolean isDefinite()
CLawisDefinite in class CLawpublic Set<CLaw> toDefinite() throws IllegalStateException
CLawtoDefinite in class CLawIllegalStateException - when there is no equivalent definite causal
law.public net.sf.tweety.commons.Signature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class CLawpublic Set<net.sf.tweety.logics.fol.syntax.FOLAtom> getAtoms()
CLawpublic Set<CLaw> getAllGrounded()
CLawgetAllGrounded in class CLawpublic Set<net.sf.tweety.logics.fol.syntax.FolFormula> getFormulas()
CLawgetFormulas in class CLawCopyright © 2018. All rights reserved.