Class LdoArgument
- java.lang.Object
-
- net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
-
- net.sf.tweety.arg.dung.ldo.syntax.LdoArgument
-
- All Implemented Interfaces:
Comparable<LdoArgument>,net.sf.tweety.commons.Formula,net.sf.tweety.logics.commons.syntax.interfaces.Atom,net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula,net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable,net.sf.tweety.logics.commons.syntax.interfaces.Invertable,net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware,net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
public class LdoArgument extends LdoFormula implements net.sf.tweety.logics.commons.syntax.interfaces.Atom, Comparable<LdoArgument>
This class represents an argument in ldo.- Author:
- Matthias Thimm, Tim Janus
-
-
Constructor Summary
Constructors Constructor Description LdoArgument()Default-Ctor for dynamic instantiationLdoArgument(String name)Creates a new proposition of the given name.LdoArgument(LdoArgument other)
-
Method Summary
Modifier and Type Method Description voidaddArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg)LdoArgumentclone()intcompareTo(LdoArgument o)booleanequals(Object obj)ArgumentgetArgument()Returns an argument representation (in Dung-style) of this LdoArgument.List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>>getArguments()Set<LdoArgument>getAtoms()Set<LdoFormula>getLiterals()Returns all literals, i.e.StringgetName()net.sf.tweety.logics.pl.syntax.PlPredicategetPredicate()Set<net.sf.tweety.logics.pl.syntax.PlPredicate>getPredicates()DungSignaturegetSignature()inthashCode()booleanisComplete()booleanisLiteral()net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATEsetPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate)StringtoString()-
Methods inherited from class net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getUniformProbability
-
-
-
-
Constructor Detail
-
LdoArgument
public LdoArgument()
Default-Ctor for dynamic instantiation
-
LdoArgument
public LdoArgument(String name)
Creates a new proposition of the given name.- Parameters:
name- the name of the proposition.
-
LdoArgument
public LdoArgument(LdoArgument other)
-
-
Method Detail
-
getArgument
public Argument getArgument()
Returns an argument representation (in Dung-style) of this LdoArgument.- Returns:
- an argument representation (in Dung-style) of this LdoArgument.
-
getName
public String getName()
- Specified by:
getNamein interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom- Returns:
- the name of this proposition.
-
getPredicate
public net.sf.tweety.logics.pl.syntax.PlPredicate getPredicate()
- Specified by:
getPredicatein interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom
-
getPredicates
public Set<net.sf.tweety.logics.pl.syntax.PlPredicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classLdoFormula
-
getSignature
public DungSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Overrides:
getSignaturein classLdoFormula
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
hashCodein classLdoFormula
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
equalsin classLdoFormula
-
clone
public LdoArgument clone()
- Specified by:
clonein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
clonein classLdoFormula
-
addArgument
public void addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg)
- Specified by:
addArgumentin interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom
-
getArguments
public List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getArguments()
- Specified by:
getArgumentsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom
-
getAtoms
public Set<LdoArgument> getAtoms()
- Specified by:
getAtomsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getAtomsin classLdoFormula
-
isLiteral
public boolean isLiteral()
- Specified by:
isLiteralin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Overrides:
isLiteralin classLdoFormula
-
getLiterals
public Set<LdoFormula> getLiterals()
Description copied from class:LdoFormulaReturns all literals, i.e. all formulas of the form "a" or "!a" where "a" is a proposition, that appear in this formula.- Specified by:
getLiteralsin classLdoFormula- Returns:
- all literals appearing in this formula.
-
setPredicate
public net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate)
- Specified by:
setPredicatein interfacenet.sf.tweety.logics.commons.syntax.interfaces.Atom
-
compareTo
public int compareTo(LdoArgument o)
- Specified by:
compareToin interfaceComparable<LdoArgument>
-
-