meshi.energy.hydrogenBond
Class HBondList
java.lang.Object
meshi.geometry.DistanceList
meshi.energy.hydrogenBond.HBdistanceList
meshi.energy.hydrogenBond.HBondList
- All Implemented Interfaces:
- java.lang.Iterable<Distance>, Updateable
public class HBondList
- extends HBdistanceList
- implements Updateable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
insertionToList
public int insertionToList
deletionFromList
public int deletionFromList
UPDATE_EVERY_X_STEPS
private final int UPDATE_EVERY_X_STEPS
- See Also:
- Constant Field Values
newhBondList
protected DistanceList newhBondList
inputNewHBList
protected static HBdistanceList inputNewHBList
relevantRows
private java.util.ArrayList<java.lang.Integer> relevantRows
parametersList
private HydrogenBondsParametersList parametersList
distanceMatrix
private DistanceMatrix distanceMatrix
numberOfUpdates
private int numberOfUpdates
countUpdates
private int countUpdates
goodResiduesForHB
private GoodResiduesForHB goodResiduesForHB
isAlive
private final HBondList.IsAlive isAlive
oldSize
private int oldSize
- to find easily the last element that was in this list before the new update
HBondList
public HBondList(DistanceMatrix distanceMatrix,
HydrogenBondsParametersList parametersList)
- Parameters:
distanceMatrix -
HBondList
public HBondList(DistanceMatrix distanceMatrix,
HydrogenBondsParametersList parametersList,
DistanceList specialDistances)
getOldSize
public final int getOldSize()
newhBondList
public final DistanceList newhBondList()
inputNewHBList
public static HBdistanceList inputNewHBList()
countUpdates
public final int countUpdates()
update
public void update(int numberOfUpdates)
- Specified by:
update in interface Updateable
update
private void update()
updateTwoLists
private void updateTwoLists(HBdistanceList atomPairList)
- Parameters:
atomPairList - of new distances that where added after HbondList was updated in the last time
update_dm
private void update_dm()
newWithinRmaxIterator
public java.util.Iterator newWithinRmaxIterator()
cleanList_dm
public void cleanList_dm()
- save only the live elements in this list
withinRmaxIterator
public java.util.Iterator withinRmaxIterator()