Class NeighborGroups

java.lang.Object
  extended byNeighborGroups

public class NeighborGroups
extends java.lang.Object

NeighborGroups stores assembly subunits in neighborgroups for fast collision detection.That is, it divides the subunits in an Assembly into groups of physically close neighbors for that methods which need to compare physically close subunits.


Field Summary
 java.util.HashMap groups
           
 
Constructor Summary
NeighborGroups()
          Creates default NeighborGroups
NeighborGroups(Assembly asm)
          Creates NeighborGroups with specified Assembly asm.
NeighborGroups(Assembly asm, boolean findLoop)
          Constructs NeighborGroups to find near binding sites to bind them
 
Method Summary
 boolean findHindrance(Subunit sub)
           
 java.util.Vector findLoopCandidates(javax.vecmath.Vector3d bsTipPos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

public java.util.HashMap groups
Constructor Detail

NeighborGroups

public NeighborGroups()
Creates default NeighborGroups


NeighborGroups

public NeighborGroups(Assembly asm)
Creates NeighborGroups with specified Assembly asm. actually sorts the Subunits in asm into neighborgroups according to a subdivision-spaced cubish grid

Parameters:
asm -

NeighborGroups

public NeighborGroups(Assembly asm,
                      boolean findLoop)
Constructs NeighborGroups to find near binding sites to bind them

Parameters:
asm -
findLoop -
Method Detail

findLoopCandidates

public java.util.Vector findLoopCandidates(javax.vecmath.Vector3d bsTipPos)

findHindrance

public boolean findHindrance(Subunit sub)