public class AtomContactSet extends Object implements Serializable, Iterable<AtomContact>
Constructor and Description |
---|
AtomContactSet(double cutoff) |
Modifier and Type | Method and Description |
---|---|
void |
add(AtomContact contact) |
void |
addAll(Collection<AtomContact> list) |
AtomContact |
getContact(Atom atom1,
Atom atom2)
Returns the corresponding AtomContact or null if no contact exists between the 2 given atoms
|
List<AtomContact> |
getContactsWithinDistance(double distance)
Returns the list of contacts from this set that are within the given distance.
|
boolean |
hasContact(Atom atom1,
Atom atom2) |
boolean |
hasContact(AtomIdentifier atomId1,
AtomIdentifier atomId2) |
boolean |
hasContactsWithinDistance(double distance)
Returns true if at least 1 contact from this set is within the given distance.
|
Iterator<AtomContact> |
iterator() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public AtomContactSet(double cutoff)
public void add(AtomContact contact)
public void addAll(Collection<AtomContact> list)
public boolean hasContact(Atom atom1, Atom atom2)
public boolean hasContact(AtomIdentifier atomId1, AtomIdentifier atomId2)
public AtomContact getContact(Atom atom1, Atom atom2)
atom1
- atom2
- public int size()
public Iterator<AtomContact> iterator()
iterator
in interface Iterable<AtomContact>
public boolean hasContactsWithinDistance(double distance)
distance
- IllegalArgumentException
- if given distance is larger than distance cutoff
used for calculation of contactspublic List<AtomContact> getContactsWithinDistance(double distance)
distance
- IllegalArgumentException
- if given distance is larger than distance cutoff
used for calculation of contactsCopyright © 2000–2018 BioJava. All rights reserved.