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:
Comparable<Argument>
,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
ConstructorDescriptionBasicArgument
(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 TypeMethodDescriptionvoid
addPremise
(Proposition premise) Add the given premise to this rule.void
addPremises
(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.boolean
isConstraintboolean
isFact()
isFactvoid
setConclusion
(Proposition conclusion) Set the conclusion of this rule.Methods inherited from class org.tweetyproject.arg.dung.syntax.Argument
compareTo, 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:Rule
Returns the conclusion of this rule.- Specified by:
getConclusion
in interfaceRule<Proposition,
Proposition> - Returns:
- the conclusion of this rule.
-
getPremise
Description copied from interface:Rule
Returns the premise of this rule.- Specified by:
getPremise
in interfaceRule<Proposition,
Proposition> - Returns:
- the premise of this rule.
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Specified by:
getSignature
in interfaceRule<Proposition,
Proposition> - Overrides:
getSignature
in classArgument
- Returns:
- the signature of the language of this formula.
-
isFact
public boolean isFact()Description copied from interface:Rule
isFact- Specified by:
isFact
in interfaceRule<Proposition,
Proposition> - Returns:
- whether the rule is a fact
-
isConstraint
public boolean isConstraint()Description copied from interface:Rule
isConstraint- Specified by:
isConstraint
in interfaceRule<Proposition,
Proposition> - Returns:
- whether the rule is a constraint
-
setConclusion
Description copied from interface:Rule
Set the conclusion of this rule.- Specified by:
setConclusion
in interfaceRule<Proposition,
Proposition> - Parameters:
conclusion
- some formula
-
addPremise
Description copied from interface:Rule
Add the given premise to this rule.- Specified by:
addPremise
in interfaceRule<Proposition,
Proposition> - Parameters:
premise
- some formula
-
addPremises
Description copied from interface:Rule
Add the given premises to this rule.- Specified by:
addPremises
in interfaceRule<Proposition,
Proposition> - Parameters:
premises
- some formulas
-