Package net.sf.tweety.arg.aba.syntax
Class Assumption<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.arg.aba.syntax.Assumption<T>
-
- Type Parameters:
T- is the type of the language that the ABA theory's rules range over
- All Implemented Interfaces:
ABARule<T>,net.sf.tweety.commons.Formula,net.sf.tweety.commons.util.rules.Rule<T,T>
public class Assumption<T extends net.sf.tweety.commons.Formula> extends Object implements ABARule<T>
- Author:
- Nils Geilen (geilenn@uni-koblenz.de) An assumption of an ABA theory
-
-
Constructor Summary
Constructors Constructor Description Assumption(T assumption)Creates a new assumption
-
Method Summary
Modifier and Type Method Description voidaddPremise(T premise)voidaddPremises(Collection<? extends T> premises)booleanequals(Object obj)TgetConclusion()TgetFormula()Returns the inner formula of this assumption.Collection<? extends T>getPremise()net.sf.tweety.commons.SignaturegetSignature()inthashCode()booleanisAssumption()booleanisConstraint()booleanisFact()voidsetConclusion(T conclusion)StringtoString()
-
-
-
Constructor Detail
-
Assumption
public Assumption(T assumption)
Creates a new assumption- Parameters:
assumption- the assumed formula
-
-
Method Detail
-
isFact
public boolean isFact()
-
isConstraint
public boolean isConstraint()
-
setConclusion
public void setConclusion(T conclusion)
-
addPremise
public void addPremise(T premise)
-
addPremises
public void addPremises(Collection<? extends T> premises)
-
getSignature
public net.sf.tweety.commons.Signature getSignature()
-
getPremise
public Collection<? extends T> getPremise()
-
getConclusion
public T getConclusion()
-
getFormula
public T getFormula()
Returns the inner formula of this assumption.- Returns:
- the inner formula of this assumption.
-
isAssumption
public boolean isAssumption()
- Specified by:
isAssumptionin interfaceABARule<T extends net.sf.tweety.commons.Formula>- Returns:
- whether this rule is an assumption
-
-