code: public float getRankingForResourceType(String resourceType) {
  
          String[] resourceTypeParams = getResourceTypes().get(resourceType);
          if (resourceTypeParams == null) {
              return -1.0f;
          } else {
              return Float.parseFloat(resourceTypeParams[0]);
          }
      }
docs: Returns the ranking value for the given resource type.<p>
  
  @param resourceType the current resource type
  @return the ranking (the higher the better)