Class AbstractGraphLdoModality
java.lang.Object
org.tweetyproject.arg.dung.ldo.syntax.LdoFormula
org.tweetyproject.arg.dung.ldo.syntax.AbstractLdoModality
org.tweetyproject.arg.dung.ldo.syntax.AbstractGraphLdoModality
- All Implemented Interfaces:
Formula
,ClassicalFormula
,Conjunctable
,Disjunctable
,Invertable
,ProbabilityAware
,SimpleLogicalFormula
- Direct Known Subclasses:
LdoGraphBoxModality
,LdoGraphDiamondModality
Provides common functionalities for the graph-based modalities in LDO.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionAbstractGraphLdoModality
(LdoFormula innerFormula, Set<LdoArgument> lowerReferenceArguments, Set<LdoArgument> upperReferenceArguments) Constructs an instance of this modality with specified inner formula and sets of reference arguments. -
Method Summary
Modifier and TypeMethodDescriptionabstract LdoFormula
clone()
Creates a deep copy of this formulagetAtoms()
Processes the set of all atoms which appear in this formulaReturns the lower reference arguments of this modality.Processes the set of all predicates which appear in this formulaReturns the upper reference arguments of this modality.Methods inherited from class org.tweetyproject.arg.dung.ldo.syntax.AbstractLdoModality
equals, getInnerFormula, getLiterals, hashCode
Methods inherited from class org.tweetyproject.arg.dung.ldo.syntax.LdoFormula
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getSignature, getUniformProbability, isLiteral
-
Constructor Details
-
AbstractGraphLdoModality
public AbstractGraphLdoModality(LdoFormula innerFormula, Set<LdoArgument> lowerReferenceArguments, Set<LdoArgument> upperReferenceArguments) Constructs an instance of this modality with specified inner formula and sets of reference arguments.- Parameters:
innerFormula
- The formula within the modality.lowerReferenceArguments
- Set of arguments that represent the lower reference context.upperReferenceArguments
- Set of arguments that represent the upper reference context.
-
-
Method Details
-
getLowerReferenceArguments
Returns the lower reference arguments of this modality.- Returns:
- the lower reference arguments of this modality.
-
getUpperReferenceArguments
Returns the upper reference arguments of this modality.- Returns:
- the upper reference arguments of this modality.
-
getAtoms
Description copied from interface:SimpleLogicalFormula
Processes the set of all atoms which appear in this formula- Specified by:
getAtoms
in interfaceSimpleLogicalFormula
- Overrides:
getAtoms
in classAbstractLdoModality
- Returns:
- The set of all atoms
-
getPredicates
Description copied from interface:SimpleLogicalFormula
Processes the set of all predicates which appear in this formula- Specified by:
getPredicates
in interfaceSimpleLogicalFormula
- Overrides:
getPredicates
in classAbstractLdoModality
- Returns:
- all predicates that appear in this formula
-
clone
Description copied from interface:SimpleLogicalFormula
Creates a deep copy of this formula- Specified by:
clone
in interfaceSimpleLogicalFormula
- Specified by:
clone
in classAbstractLdoModality
- Returns:
- the cloned formula
-