Package net.sf.tweety.arg.bipolar.syntax
Class SetSupport
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<BipolarEntity>
-
- net.sf.tweety.arg.bipolar.syntax.SetSupport
-
- All Implemented Interfaces:
BipolarEntity,Support,net.sf.tweety.arg.dung.syntax.DungEntity,net.sf.tweety.commons.Formula,net.sf.tweety.graphs.Node
public class SetSupport extends net.sf.tweety.graphs.DirectedEdge<BipolarEntity> implements Support
This class models a support between a set of arguments and an argument. It comprises of a set ofBArgumentand is used by bipolar abstract argumentation theories.- Author:
- Lars Bengel
-
-
Constructor Summary
Constructors Constructor Description SetSupport(Collection<BArgument> supporter, BArgument supported)initializes the arguments used in this support relationSetSupport(ArgumentSet supporter, BArgument 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 Type Method Description booleancontains(Object o)booleancontains(BArgument argument)Return true if the given argument is in this support relation.booleanequals(Object o)net.sf.tweety.arg.dung.ldo.syntax.LdoFormulagetLdoFormula()net.sf.tweety.commons.SignaturegetSignature()BArgumentgetSupported()returns the supported argument of this support relation.ArgumentSetgetSupporter()returns the supporting set of arguments of this support relation.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SetSupport
public SetSupport(ArgumentSet supporter, BArgument supported)
Default constructor; initializes the arguments used in this support relation- Parameters:
supporter- the supporting set of argumentssupported- the supported argument
-
SetSupport
public SetSupport(Collection<BArgument> supporter, BArgument supported)
initializes the arguments used in this support relation- Parameters:
supporter- a collection of argumentssupported- some argument
-
-
Method Detail
-
getSupported
public BArgument getSupported()
returns the supported argument of this support relation.- Specified by:
getSupportedin interfaceSupport- Returns:
- the supported argument of this support relation.
-
getSupporter
public ArgumentSet getSupporter()
returns the supporting set of arguments of this support relation.- Specified by:
getSupporterin interfaceSupport- Returns:
- the supporting set of arguments of this support relation.
-
contains
public boolean contains(BArgument argument)
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
public String toString()
- Specified by:
toStringin interfaceSupport- Overrides:
toStringin classnet.sf.tweety.graphs.DirectedEdge<BipolarEntity>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classnet.sf.tweety.graphs.Edge<BipolarEntity>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classnet.sf.tweety.graphs.Edge<BipolarEntity>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceBipolarEntity
-
getLdoFormula
public net.sf.tweety.arg.dung.ldo.syntax.LdoFormula getLdoFormula()
- Specified by:
getLdoFormulain interfacenet.sf.tweety.arg.dung.syntax.DungEntity
-
getSignature
public net.sf.tweety.commons.Signature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula
-
-