public void absorbCluster(GridCluster gridClus)
	{
		DensityGrid dg;
		Boolean inside;
		Iterator<Map.Entry<DensityGrid, Boolean>> grid;
		HashMap<DensityGrid, Boolean> newCluster = new HashMap<DensityGrid, Boolean>();
		
		//System.out.println("Absorb cluster "+gridClus.getClusterLabel()+" into cluster "+this.getClusterLabel()+".");
		
		// Add each density grid from gridClus into this.grids
		grid = gridClus.getGrids().entrySet().iterator();
		while (grid.hasNext())
		{
			Map.Entry<DensityGrid, Boolean> entry = grid.next();
			dg = entry.getKey();
			this.grids.put(dg, false);
		}
		//System.out.println("...density grids added");
		
		// Determine which density grids in this.grids are 'inside' and which are 'outside'
		grid = this.getGrids().entrySet().iterator();
		while(grid.hasNext())
		{
			Map.Entry<DensityGrid, Boolean> entry = grid.next();
			dg = entry.getKey();
			inside = isInside(dg);
			newCluster.put(dg, inside);
		}
		this.grids = newCluster;
		//System.out.println("...inside/outside determined");

	}
public void absorbCluster ( GridCluster gridClus ) { DensityGrid dg ; Boolean inside ; Iterator < Map . Entry < DensityGrid , Boolean > > grid ; HashMap < DensityGrid , Boolean > newCluster = new HashMap < DensityGrid , Boolean > ( ) ; grid = gridClus . getGrids ( ) . entrySet ( ) . iterator ( ) ; while ( grid . hasNext ( ) ) { Map . Entry < DensityGrid , Boolean > entry = grid . next ( ) ; dg = entry . getKey ( ) ; this . grids . put ( dg , false ) ; } grid = this . getGrids ( ) . entrySet ( ) . iterator ( ) ; while ( grid . hasNext ( ) ) { Map . Entry < DensityGrid , Boolean > entry = grid . next ( ) ; dg = entry . getKey ( ) ; inside = isInside ( dg ) ; newCluster . put ( dg , inside ) ; } this . grids = newCluster ; }
@param gridClus the GridCluster to be absorbed into this cluster