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
ConstructorsConstructorDescriptionAbstractGraphLdoModality(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 LdoFormulaclone()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, hashCodeMethods 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:SimpleLogicalFormulaProcesses the set of all atoms which appear in this formula- Specified by:
getAtomsin interfaceSimpleLogicalFormula- Overrides:
getAtomsin classAbstractLdoModality- Returns:
- The set of all atoms
-
getPredicates
Description copied from interface:SimpleLogicalFormulaProcesses the set of all predicates which appear in this formula- Specified by:
getPredicatesin interfaceSimpleLogicalFormula- Overrides:
getPredicatesin classAbstractLdoModality- Returns:
- all predicates that appear in this formula
-
clone
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
clonein interfaceSimpleLogicalFormula- Specified by:
clonein classAbstractLdoModality- Returns:
- the cloned formula
-