meshi.geometry
Class AngleList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Angle>
              extended by meshi.geometry.AngleList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Angle>, java.util.Collection<Angle>, java.util.List<Angle>, java.util.RandomAccess, Updateable
Direct Known Subclasses:
QuickAndDirtyAngleList

public class AngleList
extends java.util.ArrayList<Angle>
implements Updateable

See Also:
Serialized Form

Field Summary
private  int numberOfUpdates
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AngleList()
           
AngleList(AtomPairList bonds, DistanceMatrix distanceMatrix)
           
 
Method Summary
 Angle angleAt(int i)
           
 AtomList atomList()
           
 Angle getAngle(AtomPair atomPair1, AtomPair atomPair2, DistanceMatrix distanceMatrix)
           
static AngleList getCaAngles(Protein protein, DistanceMatrix distanceMatrix)
           
 boolean isNamed(Angle angle)
           
 AngleList namedFilter()
          Returns a sub-list containing angles that have a known name
 void update(int numberOfUpdates)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

numberOfUpdates

private int numberOfUpdates
Constructor Detail

AngleList

public AngleList()

AngleList

public AngleList(AtomPairList bonds,
                 DistanceMatrix distanceMatrix)
Method Detail

update

public void update(int numberOfUpdates)
            throws UpdateableException
Specified by:
update in interface Updateable
Throws:
UpdateableException

angleAt

public Angle angleAt(int i)

namedFilter

public AngleList namedFilter()
Returns a sub-list containing angles that have a known name


isNamed

public boolean isNamed(Angle angle)

atomList

public AtomList atomList()

getCaAngles

public static AngleList getCaAngles(Protein protein,
                                    DistanceMatrix distanceMatrix)

getAngle

public Angle getAngle(AtomPair atomPair1,
                      AtomPair atomPair2,
                      DistanceMatrix distanceMatrix)