public class DynamicLaw extends CLaw
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.tweety.logics.fol.syntax.FolFormula |
afterFormula |
headFormula, ifFormula, requirements| Constructor and Description |
|---|
DynamicLaw()
Constructs a new empty dynamic law.
|
DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula)
Creates a new dynamic law of the form caused headFormula after
afterFormula
|
DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula)
Creates a new dynamic law of the form: caused headFormula if ifFormula
after afterFormula
|
DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula,
Set<GroundingRequirement> requirements)
Creates a new dynamic law of the form: caused headFormula if ifFormula
after afterFormula requires requirements
|
DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula,
Set<GroundingRequirement> requirements)
Creates a new dynamic law of the form caused headFormula after
afterFormula requires requirements
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.tweety.logics.fol.syntax.FolFormula |
getAfterFormula()
Returns the afterFormula of this causal law.
|
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 DynamicLaw()
public DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula)
headFormula - ifFormula - afterFormula - public DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula ifFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula,
Set<GroundingRequirement> requirements)
headFormula - ifFormula - afterFormula - requirements - public DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula)
headFormula - afterFormula - public DynamicLaw(net.sf.tweety.logics.fol.syntax.FolFormula headFormula,
net.sf.tweety.logics.fol.syntax.FolFormula afterFormula,
Set<GroundingRequirement> requirements)
headFormula - afterFormula - requirements - public net.sf.tweety.logics.fol.syntax.FolFormula getAfterFormula()
public boolean isDefinite()
CLawisDefinite in class CLawpublic 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> toDefinite()
CLawtoDefinite in class 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.