lojix/power_model/src/main/com/thesett/aima/attribute/impl/HierarchyAttribute.java
public String getValueAtLevel(String level)
    {
        /*log.fine("public String getValueAtLevel(String level): called");*/
        /*log.fine("level = " + level);*/

        int index = attributeClass.levels.indexOf(level);

        /*log.fine("index = " + index);*/

        if (index == -1)
        {
            throw new IllegalArgumentException("Level name " + level +
                " is not known to this hierarchy attribute type.");
        }

        return getValueAtLevel(index);
    }
public String getValueAtLevel(String level)
    {
        /*log.fine("public String getValueAtLevel(String level): called");*/
        /*log.fine("level = " + level);*/

        int index = attributeClass.levels.indexOf(level);

        /*log.fine("index = " + index);*/

        if (index == -1)
        {
            throw new IllegalArgumentException("Level name " + level +
                " is not known to this hierarchy attribute type.");
        }

        return getValueAtLevel(index);
    }
Gets the label value at the named level of the hierarchy.

@param  level The level to get the label at.

@return The label value at the specified level of the hierarchy.