public interface InMemoryAtomSet extends AtomSet, CloseableIterableWithoutException<Atom>
Modifier and Type | Method and Description |
---|---|
boolean |
add(Atom atom)
Add the specified atom to this atom set if is not already present.
|
boolean |
addAll(CloseableIteratorWithoutException<? extends Atom> atoms) |
boolean |
addAll(InMemoryAtomSet atoms) |
CloseableIteratorWithoutException<Atom> |
atomsByPredicate(Predicate p)
Returns an iterator over all atoms with the specified predicate.
|
void |
clear() |
CloseableIteratorWithoutException<Constant> |
constantsIterator()
Returns an iterator over all constants in this atom set.
|
boolean |
contains(Atom atom)
Returns true if this atom set contains the specified atom.
|
Set<Constant> |
getConstants()
Returns a Set of all constants in this atom set.
|
Set<Literal> |
getLiterals()
Returns a Set of all literals in this atom set.
|
Set<Predicate> |
getPredicates()
Returns a Set of all predicates in this atom set.
|
Set<Term> |
getTerms()
Returns a Set of all terms in this atom set.
|
Set<Term> |
getTerms(Term.Type type)
Deprecated.
|
Set<Variable> |
getVariables()
Returns a Set of all variables in this atom set.
|
boolean |
isEmpty() |
boolean |
isSubSetOf(AtomSet atomset)
Deprecated.
|
CloseableIteratorWithoutException<Atom> |
iterator()
Returns an iterator over the atoms in this atom set.
|
CloseableIteratorWithoutException<Literal> |
literalsIterator()
Returns an iterator over all literals in this atom set.
|
CloseableIteratorWithoutException<Atom> |
match(Atom atom)
Returns an iterator over atoms that match predicate and constants from
the specified atom.
|
CloseableIteratorWithoutException<Predicate> |
predicatesIterator()
Returns an iterator over all predicates in this atom set.
|
boolean |
remove(Atom atom)
Remove the specified atom from this this atom set.
|
boolean |
removeAll(CloseableIteratorWithoutException<? extends Atom> atoms) |
boolean |
removeAll(InMemoryAtomSet atoms) |
CloseableIteratorWithoutException<Term> |
termsByPredicatePosition(Predicate p,
int position)
Returns an iterator over terms which are in a specific position in at
least one atom with the specified predicate.
|
CloseableIteratorWithoutException<Term> |
termsIterator()
Returns an iterator over all terms in this atom set.
|
CloseableIteratorWithoutException<Term> |
termsIterator(Term.Type type)
Deprecated.
|
CloseableIteratorWithoutException<Variable> |
variablesIterator()
Returns an iterator over all variables in this atom set.
|
boolean contains(Atom atom)
AtomSet
CloseableIteratorWithoutException<Atom> match(Atom atom)
AtomSet
CloseableIteratorWithoutException<Atom> atomsByPredicate(Predicate p)
AtomSet
atomsByPredicate
in interface AtomSet
CloseableIteratorWithoutException<Term> termsByPredicatePosition(Predicate p, int position)
AtomSet
termsByPredicatePosition
in interface AtomSet
position
- the term position in atoms, positions starts from 0.Set<Predicate> getPredicates()
AtomSet
getPredicates
in interface AtomSet
CloseableIteratorWithoutException<Predicate> predicatesIterator()
AtomSet
predicatesIterator
in interface AtomSet
Set<Term> getTerms()
AtomSet
Set<Variable> getVariables()
AtomSet
getVariables
in interface AtomSet
Set<Constant> getConstants()
AtomSet
getConstants
in interface AtomSet
Set<Literal> getLiterals()
AtomSet
getLiterals
in interface AtomSet
CloseableIteratorWithoutException<Term> termsIterator()
AtomSet
termsIterator
in interface AtomSet
CloseableIteratorWithoutException<Variable> variablesIterator()
AtomSet
variablesIterator
in interface AtomSet
CloseableIteratorWithoutException<Constant> constantsIterator()
AtomSet
constantsIterator
in interface AtomSet
CloseableIteratorWithoutException<Literal> literalsIterator()
AtomSet
literalsIterator
in interface AtomSet
@Deprecated Set<Term> getTerms(Term.Type type)
AtomSet
AtomSet.getVariables()
, AtomSet.getConstants()
or AtomSet.getLiterals()
instead.
@Deprecated CloseableIteratorWithoutException<Term> termsIterator(Term.Type type)
AtomSet
AtomSet.variablesIterator()
, AtomSet.constantsIterator()
or AtomSet.literalsIterator()
instead.
termsIterator
in interface AtomSet
CloseableIteratorWithoutException<Atom> iterator()
AtomSet
iterator
in interface AtomSet
iterator
in interface CloseableIterable<Atom>
iterator
in interface CloseableIterableWithoutException<Atom>
@Deprecated boolean isSubSetOf(AtomSet atomset)
AtomSet
isSubSetOf
in interface AtomSet
boolean isEmpty()
boolean add(Atom atom)
AtomSet
boolean remove(Atom atom)
AtomSet
boolean removeAll(CloseableIteratorWithoutException<? extends Atom> atoms)
boolean removeAll(InMemoryAtomSet atoms)
boolean addAll(InMemoryAtomSet atoms)
boolean addAll(CloseableIteratorWithoutException<? extends Atom> atoms)
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.