Package net.sf.tweety.arg.aba.syntax
Class Assumption<T extends Formula>
- java.lang.Object
-
- net.sf.tweety.arg.aba.syntax.Assumption<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TassumptionThe assumed formula
-
Constructor Summary
Constructors Constructor Description Assumption(T assumption)Creates a new assumption
-
Method Summary
Modifier and Type Method Description voidaddPremise(T premise)voidaddPremises(java.util.Collection<? extends T> premises)booleanequals(java.lang.Object obj)TgetConclusion()Returns the conclusion of this rule.TgetFormula()Returns the inner formula of this assumption.java.util.Collection<? extends T>getPremise()Returns the premise of this rule.SignaturegetSignature()Returns the signature of the language of this formula.inthashCode()booleanisAssumption()booleanisConstraint()booleanisFact()voidsetConclusion(T conclusion)java.lang.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(java.util.Collection<? extends T> premises)
-
getSignature
public Signature getSignature()
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Specified by:
getSignaturein interfaceRule<T extends Formula,T extends Formula>- Returns:
- the signature of the language of this formula.
-
getPremise
public java.util.Collection<? extends T> getPremise()
Description copied from interface:RuleReturns the premise of this rule.
-
getConclusion
public T getConclusion()
Description copied from interface:RuleReturns the conclusion of this rule.
-
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 Formula>- Returns:
- whether this rule is an assumption
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-