Class SetSupport
java.lang.Object
org.tweetyproject.graphs.GeneralEdge<BipolarEntity>
org.tweetyproject.graphs.Edge<BipolarEntity>
org.tweetyproject.graphs.DirectedEdge<BipolarEntity>
org.tweetyproject.arg.bipolar.syntax.SetSupport
- All Implemented Interfaces:
Iterable<BArgument>
,BipolarEntity
,Support
,DungEntity
,Formula
,Node
- Direct Known Subclasses:
WeightedSetSupport
This class models a support between a set of arguments and an argument. It comprises of a set of
BArgument
and is used by
bipolar abstract argumentation theories.- Author:
- Lars Bengel
-
Constructor Summary
ConstructorDescriptionSetSupport
(Collection<BArgument> supporter, Collection<BArgument> supported) initializes the arguments used in this support relationSetSupport
(ArgumentSet supporter, ArgumentSet supported) Default constructor; initializes the arguments used in this support relationSetSupport
(BArgument supporter, BArgument supported) initializes the arguments used in this support relation -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this entity contains the specified object.boolean
Return true if the given argument is in this support relation.boolean
double
Returns the conditional probability of the support.Returns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf.Returns the signature of the language of this formula.returns the supported argument of this support relation.returns the supporting set of arguments of this support relation.int
hashCode()
iterator()
void
setConditionality
(double c) Sets the conditionality of the support, represented by a probability value.toString()
Returns a string representation of the support relation.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SetSupport
Default constructor; initializes the arguments used in this support relation- Parameters:
supporter
- the supporting set of argumentssupported
- the supported argument
-
SetSupport
initializes the arguments used in this support relation- Parameters:
supporter
- a collection of argumentssupported
- some argument
-
SetSupport
-
-
Method Details
-
setConditionality
public void setConditionality(double c) Description copied from interface:Support
Sets the conditionality of the support, represented by a probability value.The conditionality or strength of the support is represented by a conditional probability value, which reflects how strongly the supporter influences the supported argument.
- Specified by:
setConditionality
in interfaceSupport
- Parameters:
c
- the conditional probability of the support
-
getConditionalProbability
public double getConditionalProbability()Description copied from interface:Support
Returns the conditional probability of the support.This method retrieves the conditional probability associated with the support, indicating the strength of the support.
- Specified by:
getConditionalProbability
in interfaceSupport
- Returns:
- the conditional probability of the support
-
getSupported
returns the supported argument of this support relation.- Specified by:
getSupported
in interfaceSupport
- Returns:
- the supported argument of this support relation.
-
getSupporter
returns the supporting set of arguments of this support relation.- Specified by:
getSupporter
in interfaceSupport
- Returns:
- the supporting set of arguments of this support relation.
-
contains
Return true if the given argument is in this support relation.- Parameters:
argument
- some argument- Returns:
- true if the given argument is in this support relation.
-
toString
Description copied from interface:Support
Returns a string representation of the support relation.This method provides a textual description of the support relation, including information about the supporter, the supported argument, and the conditional probability.
- Specified by:
toString
in interfaceSupport
- Overrides:
toString
in classDirectedEdge<BipolarEntity>
- Returns:
- a string representation of the support relation
-
equals
- Overrides:
equals
in classEdge<BipolarEntity>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEdge<BipolarEntity>
-
contains
Description copied from interface:BipolarEntity
Checks if this entity contains the specified object.- Specified by:
contains
in interfaceBipolarEntity
- Parameters:
o
- the object to check for containment, typically aBArgument
- Returns:
true
if the object is contained within this entity,false
otherwise
-
getLdoFormula
Description copied from interface:DungEntity
Returns a logical representation of this entity in LDO (Logic of dialectical outcomes, cf. [Hunter, Thimm, 2015])- Specified by:
getLdoFormula
in interfaceDungEntity
- Returns:
- the logical formula of this entity.
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Returns:
- the signature of the language of this formula.
-
iterator
-