Simulator/src/model/agent/humanAgent/aatom/tacticalLevel/navigation/NavigationModule.java
/**
	 * Check if there is a collision with {@link PhysicalObject}s or
	 * {@link WalkThroughMetalDetector}s.
	 * 
	 * @param goalIndex
	 *            The index of the goal position.
	 * @return True if there is, false otherwise.
	 */
Check if there is a collision with  PhysicalObjects or
WalkThroughMetalDetectors.

@param goalIndex
The index of the goal position.
@return True if there is, false otherwise.
Check if there is a collision with PhysicalObjects or WalkThroughMetalDetectors . @param goalIndex The index of the goal position . @return True if there is false otherwise .
private boolean isCollision(int goalIndex) {
		if (goalPositions.size() < goalIndex + 1)
			return true;
		for (XRaySystem system : map.getMapComponents(XRaySystem.class))
			if (system.getDistance(goalPositions.get(goalIndex)) < 2)
				return true;
		return Utilities.isLineCollision(movementModel.getPosition(), goalPositions.get(goalIndex),
				map.getMapComponents(PhysicalObject.class));
	}
private boolean isCollision ( int goalIndex ) { if ( goalPositions . size ( ) < goalIndex + 1 ) return true ; for ( XRaySystem system : map . getMapComponents ( XRaySystem . class ) ) if ( system . getDistance ( goalPositions . get ( goalIndex ) ) < 2 ) return true ; return Utilities . isLineCollision ( movementModel . getPosition ( ) , goalPositions . get ( goalIndex ) , map . getMapComponents ( PhysicalObject . class ) ) ; }
Check if there is a collision with {@link PhysicalObject}s or
 {@link WalkThroughMetalDetector}s.
Check if there is a collision with { @link PhysicalObject } s or { @link WalkThroughMetalDetector } s .