code: public boolean matchesOne(RelationPattern relationPattern) {
  	for (int i = 0; i < directions.length; i++) {
  	    if (directions[i].contains(relationPattern.directions[i]))
  		return true;
  	}
  	return false;
      }
docs: Returns true if this patterns matches at least the direction of one
  of the relations in the other relation patterns. Matching is defined
  by {@linkplain RelationDirection#contains(RelationDirection)}
  @param relationPattern
  @return