Class NamedPEAFTheory
java.lang.Object
org.tweetyproject.commons.BeliefSet<BArgument,DungSignature>
org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory<WeightedSetSupport>
org.tweetyproject.arg.bipolar.syntax.PEAFTheory
org.tweetyproject.arg.bipolar.syntax.NamedPEAFTheory
- All Implemented Interfaces:
Iterable<BArgument>
,Collection<BArgument>
,BeliefBase
,GeneralGraph<BArgument>
,Graph<BArgument>
This class inherits PEAFTheory to store additional information regarding the arguments inserted
- Author:
- Taha Dogan Gunes
-
Field Summary
Fields inherited from class org.tweetyproject.commons.BeliefSet
EQUALS_USES_SIGNATURE
Fields inherited from interface org.tweetyproject.graphs.Graph
IGNORE_SELFLOOPS, INVERT_SELFLOOPS, REMOVE_SELFLOOPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddArgument
(int identifier, String name, String aifNodeIdentifier) Add argument with namesgetArgumentByIdentifier
(String identifier) Returns the EArgument object given its identifiergetArgumentNameFromIdentifier
(String identifier) Returns the argument's name give its identifiergetNameOfArgument
(BArgument argument) Returns the name of the argument given EArgument object's referenceHelper function to give the names of a set of arguments Static such that it can work with PEAFTheory nodes (EArgument, EAttack and PSupport)void
prints string reprsentation without namestoString()
Print the NamedPEAFTheory for debugging purposesMethods inherited from class org.tweetyproject.arg.bipolar.syntax.PEAFTheory
add, add, addArgument, addAttack, addSupport, getASCIITree, isAcceptable, printASCIITree
Methods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractEAFTheory
addArgument, addAttack, addAttack, addSupport, getArguments, getArgumentsAsSet, getAttacks, getEta, getNumberOfArguments, getSupports, getSupports, powerSet
Methods inherited from class org.tweetyproject.arg.bipolar.syntax.AbstractBipolarFramework
add, add, add, addAllAttacks, addAllSupports, areAdjacent, existsDirectedPath, faf, getAdjacencyMatrix, getAttacked, getAttackers, getChildren, getComplementGraph, getDirectSupported, getDirectSupporters, getEdge, getEdges, getMinimalSignature, getNeighbors, getNodes, getNumberOfEdges, getNumberOfNodes, getParents, getRestriction, getStronglyConnectedComponents, getSubgraphs, hasSelfLoops, isAttackedBy, isDirectSupportedBy, isWeightedGraph, prettyPrint, remove, remove, remove, removeAll
Methods inherited from class org.tweetyproject.commons.BeliefSet
add, addAll, clear, contains, containsAll, equals, getSignature, hashCode, isEmpty, iterator, remove, retainAll, setSignature, size, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
NamedPEAFTheory
public NamedPEAFTheory()
-
-
Method Details
-
giveNames
Helper function to give the names of a set of arguments Static such that it can work with PEAFTheory nodes (EArgument, EAttack and PSupport)- Parameters:
names
- the map that has arguments as keys and the names of arguments as stringargs
- the arguments that are queried- Returns:
- the set of names
-
getArgumentNameFromIdentifier
-
getArgumentByIdentifier
-
getNameOfArgument
-
addArgument
Add argument with names- Parameters:
identifier
- PEAF identifier as an integer value (index of the argument for efficiency reasons)name
- The given name of the argumentaifNodeIdentifier
- The aif node identifier- Returns:
- EArgument object given
-
toString
Print the NamedPEAFTheory for debugging purposes- Specified by:
toString
in interfaceBeliefBase
- Specified by:
toString
in interfaceGraph<BArgument>
- Overrides:
toString
in classAbstractEAFTheory<WeightedSetSupport>
-
prettyPrintWithoutNames
public void prettyPrintWithoutNames()prints string reprsentation without names -
createCopyWithoutArguments
- Parameters:
args
- aruments- Returns:
- copy of thory without args
-
getIdentifier
-