Class AbstractEAFTheory<S extends Support>
java.lang.Object
org.tweetyproject.commons.BeliefSet<BArgument, DungSignature>
org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory<S>
- Type Parameters:
S- the support link (ESupport or PSupport)
- All Implemented Interfaces:
Iterable<BArgument>,Collection<BArgument>,BeliefBase,GeneralGraph<BArgument>,Graph<BArgument>
- Direct Known Subclasses:
EAFTheory,PEAFTheory
A base class for implementing PEAFTheory and EAFTheory.
- Author:
- Taha Dogan Gunes
-
Field Summary
Fields inherited from class org.tweetyproject.commons.BeliefSet
EQUALS_USES_SIGNATUREFields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(int identifier) Create and add a new argument with identifiervoidaddArgument(BArgument argument) Add an argumentvoidAdd an attack with setsvoidaddAttack(BipolarEntity froms, BipolarEntity tos) Add an attack with setsbooleanAdd an attackbooleanaddSupport(S support) Add a supportReturn a list of argumentsGet all argumentsGet all attacksgetEta()Get the eta (the root) argumentintGet all the number of argumentsGet all supportsgetSupports(BArgument arg) Get all supports invloving argument argReturn the powersettoString()Pretty print of the EAFTheoryMethods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
add, add, add, add, add, addAllAttacks, addAllSupports, areAdjacent, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttackers, getChildren, getComplementGraph, getConnectedComponents, getDirectSupported, getDirectSupporters, getEdge, getEdges, getMinimalSignature, getNeighbors, getNodes, getNumberOfEdges, getNumberOfNodes, getParents, getRestriction, getStronglyConnectedComponents, getSubgraphs, hasSelfLoops, isAcceptable, isAttackedBy, isDirectSupportedBy, isWeightedGraph, prettyPrint, remove, remove, remove, removeAllMethods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
AbstractEAFTheory
public AbstractEAFTheory()Default Constructor
-
-
Method Details
-
addArgument
Add an argument- Parameters:
argument- an EArgument objects
-
addAttack
Add an attack- Parameters:
attack- an EAttack object- Returns:
- true if successful
-
addSupport
Add a support- Parameters:
support- a T-Support object- Returns:
- true if successful
-
addAttack
Add an attack with sets- Parameters:
froms- arguments that originates the attacktos- arguments that receive the attack
-
addAttack
-
addArgument
Create and add a new argument with identifier- Parameters:
identifier- integer identifier for the argument- Returns:
- the created argument
-
getArgumentsAsSet
-
getArguments
-
getSupports
Get all supports- Specified by:
getSupportsin classAbstractBipolarFramework- Returns:
- a list of supports
-
getSupports
-
getAttacks
Get all attacks- Specified by:
getAttacksin classAbstractBipolarFramework- Returns:
- a list of attacks
-
powerSet
-
toString
-
getNumberOfArguments
public int getNumberOfArguments()Get all the number of arguments- Returns:
- the number of arguments
-
getEta
-