Class SimplePlRule
- java.lang.Object
-
- net.sf.tweety.arg.deductive.syntax.SimplePlRule
-
- All Implemented Interfaces:
net.sf.tweety.commons.Formula,net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
public class SimplePlRule extends Object implements net.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
Basic data structure for handling simple rule- Author:
- Federico Cerutti (federico.cerutti@acm.org)
-
-
Constructor Summary
Constructors Constructor Description SimplePlRule()SimplePlRule(net.sf.tweety.logics.pl.syntax.PlFormula _claim)SimplePlRule(net.sf.tweety.logics.pl.syntax.PlFormula _claim, Set<net.sf.tweety.logics.pl.syntax.PlFormula> _support)
-
Method Summary
Modifier and Type Method Description voidaddPremise(net.sf.tweety.logics.pl.syntax.PlFormula arg0)voidaddPremises(Collection<? extends net.sf.tweety.logics.pl.syntax.PlFormula> arg0)booleanequals(Object obj)net.sf.tweety.logics.pl.syntax.PlFormulagetConclusion()Collection<? extends net.sf.tweety.logics.pl.syntax.PlFormula>getPremise()net.sf.tweety.commons.SignaturegetSignature()inthashCode()booleanisConstraint()booleanisFact()voidsetConclusion(net.sf.tweety.logics.pl.syntax.PlFormula arg0)StringtoString()
-
-
-
Constructor Detail
-
SimplePlRule
public SimplePlRule()
-
SimplePlRule
public SimplePlRule(net.sf.tweety.logics.pl.syntax.PlFormula _claim)
-
SimplePlRule
public SimplePlRule(net.sf.tweety.logics.pl.syntax.PlFormula _claim, Set<net.sf.tweety.logics.pl.syntax.PlFormula> _support)
-
-
Method Detail
-
addPremise
public void addPremise(net.sf.tweety.logics.pl.syntax.PlFormula arg0)
- Specified by:
addPremisein interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
addPremises
public void addPremises(Collection<? extends net.sf.tweety.logics.pl.syntax.PlFormula> arg0)
- Specified by:
addPremisesin interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
getConclusion
public net.sf.tweety.logics.pl.syntax.PlFormula getConclusion()
- Specified by:
getConclusionin interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
getPremise
public Collection<? extends net.sf.tweety.logics.pl.syntax.PlFormula> getPremise()
- Specified by:
getPremisein interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
getSignature
public net.sf.tweety.commons.Signature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
isConstraint
public boolean isConstraint()
- Specified by:
isConstraintin interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
isFact
public boolean isFact()
- Specified by:
isFactin interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
setConclusion
public void setConclusion(net.sf.tweety.logics.pl.syntax.PlFormula arg0)
- Specified by:
setConclusionin interfacenet.sf.tweety.commons.util.rules.Rule<net.sf.tweety.logics.pl.syntax.PlFormula,net.sf.tweety.logics.pl.syntax.PlFormula>
-
-