cousinLocations(root member), given a root member (implicit ancestor), a location, and a hierarchy for a dimension, the cousin location is where the member in the dimension of the specified location is replaced with members that are descendants of the ancestor member but at the same level as the member in the specified location. It is assumed that the dimension of the ancestor member is same as that of the specified hierarchy. The locations are ordered from left to right along the level of the specified location. The boolean flags control which locations to ignore (to the left or to the right).
cousinLocations(Location loc, Hierarchy h, boolean excludeLeftCousins, boolean excludeRightCousins, boolean excludeSelf)