Package org.tweetyproject.arg.saf.syntax
Class BasicArgument
java.lang.Object
org.tweetyproject.arg.dung.syntax.Argument
org.tweetyproject.arg.saf.syntax.BasicArgument
- All Implemented Interfaces:
DungEntity,Formula,Rule<Proposition,,Proposition> Node
This class models a basic argument in structured argumentation frameworks, i.e.
a claim (a proposition) together with a support (a set of propositions) where
the claim is not in the support.
- Author:
- Matthias Thimm, Tim Janus
-
Constructor Summary
ConstructorsConstructorDescriptionBasicArgument(String name) Deprecated.BasicArgument(Proposition claim) Creates a new basic argument with the given claim and empty support.BasicArgument(Proposition claim, Set<Proposition> support) Creates a new basic argument with the given claim and the given support. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPremise(Proposition premise) Add the given premise to this rule.voidaddPremises(Collection<? extends Proposition> premises) Add the given premises to this rule.Returns the conclusion of this rule.Returns the premise of this rule.Returns the signature of the language of this formula.booleanisConstraintbooleanisFact()isFactvoidsetConclusion(Proposition conclusion) Set the conclusion of this rule.Methods inherited from class org.tweetyproject.arg.dung.syntax.Argument
equals, getLdoArgument, getLdoFormula, getName, hashCode, setName, toString
-
Constructor Details
-
BasicArgument
Deprecated.Deprecated for basic arguments.- Parameters:
name- the name of the argument
-
BasicArgument
Creates a new basic argument with the given claim and empty support.- Parameters:
claim- a proposition.
-
BasicArgument
Creates a new basic argument with the given claim and the given support.- Parameters:
claim- a propositionsupport- a set of propositions
-
-
Method Details
-
getConclusion
Description copied from interface:RuleReturns the conclusion of this rule.- Specified by:
getConclusionin interfaceRule<Proposition,Proposition> - Returns:
- the conclusion of this rule.
-
getPremise
Description copied from interface:RuleReturns the premise of this rule.- Specified by:
getPremisein interfaceRule<Proposition,Proposition> - Returns:
- the premise of this rule.
-
getSignature
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Specified by:
getSignaturein interfaceRule<Proposition,Proposition> - Overrides:
getSignaturein classArgument- Returns:
- the signature of the language of this formula.
-
isFact
public boolean isFact()Description copied from interface:RuleisFact- Specified by:
isFactin interfaceRule<Proposition,Proposition> - Returns:
- whether the rule is a fact
-
isConstraint
public boolean isConstraint()Description copied from interface:RuleisConstraint- Specified by:
isConstraintin interfaceRule<Proposition,Proposition> - Returns:
- whether the rule is a constraint
-
setConclusion
Description copied from interface:RuleSet the conclusion of this rule.- Specified by:
setConclusionin interfaceRule<Proposition,Proposition> - Parameters:
conclusion- some formula
-
addPremise
Description copied from interface:RuleAdd the given premise to this rule.- Specified by:
addPremisein interfaceRule<Proposition,Proposition> - Parameters:
premise- some formula
-
addPremises
Description copied from interface:RuleAdd the given premises to this rule.- Specified by:
addPremisesin interfaceRule<Proposition,Proposition> - Parameters:
premises- some formulas
-