public class LdoArgument extends LdoFormula implements Atom, java.lang.Comparable<LdoArgument>
Atom.AtomImpl, Atom.RETURN_SET_PREDICATE| Modifier and Type | Field and Description |
|---|---|
private PropositionalPredicate |
predicate
The name of the proposition
|
| Constructor and Description |
|---|
LdoArgument()
Default-Ctor for dynamic instantiation
|
LdoArgument(LdoArgument other) |
LdoArgument(java.lang.String name)
Creates a new proposition of the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Term<?> arg)
Adds an argument to the atom's argument list
|
LdoArgument |
clone()
Creates a deep copy of this formula
|
int |
compareTo(LdoArgument o) |
boolean |
equals(java.lang.Object obj) |
Argument |
getArgument()
Returns an argument representation (in Dung-style)
of this LdoArgument.
|
java.util.List<? extends Term<?>> |
getArguments() |
java.util.Set<LdoArgument> |
getAtoms()
Processes the set of all atoms which appear in this formula
|
java.util.Set<LdoFormula> |
getLiterals()
Returns all literals, i.e.
|
java.lang.String |
getName() |
PropositionalPredicate |
getPredicate() |
java.util.Set<PropositionalPredicate> |
getPredicates()
Processes the set of all predicates which appear in this
formula
|
DungSignature |
getSignature()
Returns the signature of the language of this formula.
|
int |
hashCode() |
boolean |
isComplete() |
boolean |
isLiteral() |
Atom.RETURN_SET_PREDICATE |
setPredicate(Predicate predicate)
Changes the predicate of the atom.
|
java.lang.String |
toString() |
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getUniformProbabilityfinalize, getClass, notify, notifyAll, wait, wait, waitgetPredicateClsprivate PropositionalPredicate predicate
public LdoArgument()
public LdoArgument(java.lang.String name)
name - the name of the proposition.public LdoArgument(LdoArgument other)
public Argument getArgument()
public java.lang.String getName()
public PropositionalPredicate getPredicate()
getPredicate in interface Atompublic java.util.Set<PropositionalPredicate> getPredicates()
SimpleLogicalFormulagetPredicates in interface SimpleLogicalFormulagetPredicates in class LdoFormulapublic java.lang.String toString()
toString in class java.lang.Objectpublic DungSignature getSignature()
FormulagetSignature in interface FormulagetSignature in class LdoFormulapublic int hashCode()
hashCode in interface SimpleLogicalFormulahashCode in class LdoFormulapublic boolean equals(java.lang.Object obj)
equals in interface SimpleLogicalFormulaequals in class LdoFormulapublic LdoArgument clone()
SimpleLogicalFormulaclone in interface SimpleLogicalFormulaclone in class LdoFormulapublic void addArgument(Term<?> arg)
AtomaddArgument in interface Atomarg - The next argumentpublic java.util.List<? extends Term<?>> getArguments()
getArguments in interface Atompublic boolean isComplete()
isComplete in interface Atompublic java.util.Set<LdoArgument> getAtoms()
SimpleLogicalFormulagetAtoms in interface SimpleLogicalFormulagetAtoms in class LdoFormulapublic boolean isLiteral()
isLiteral in interface SimpleLogicalFormulaisLiteral in class LdoFormulapublic java.util.Set<LdoFormula> getLiterals()
LdoFormulagetLiterals in class LdoFormulapublic Atom.RETURN_SET_PREDICATE setPredicate(Predicate predicate)
AtomsetPredicate in interface Atompublic int compareTo(LdoArgument o)
compareTo in interface java.lang.Comparable<LdoArgument>