private void createBoundaryMap(
ParticleBoundaryType boundaryType, SharedDataManager sharedDataManager) {
for (int region = 0; region < BoundaryRegions.NUM_OF_REGIONS; ++region) {
SharedData sd = sharedDataManager.getBoundarySharedData(region);
if (sd != null) {
double xoffset = getXOffset(sharedDataManager.getBoundaryDirections(region));
double yoffset = getYOffset(sharedDataManager.getBoundaryDirections(region));
boundaryMap[region] = new BoundaryGate(xoffset, yoffset, sd);