lojix/power_model/src/main/com/thesett/aima/attribute/impl/IdAttribute.java
public long getId()
    {
        // Check if the attribute class has been finalized yet.
        if (attributeClass.finalized)
        {
            // Fetch the object value from the attribute class array of finalized values.
            return attributeClass.lookupValue[value].id;
        }

        // The attribute class has not been finalized yet.
        else
        {
            // Fetch the object value from the attribute class list of unfinalized values.
            return attributeClass.lookupValueList.get(value).id;
        }
    }
public long getId()
    {
        // Check if the attribute class has been finalized yet.
        if (attributeClass.finalized)
        {
            // Fetch the object value from the attribute class array of finalized values.
            return attributeClass.lookupValue[value].id;
        }

        // The attribute class has not been finalized yet.
        else
        {
            // Fetch the object value from the attribute class list of unfinalized values.
            return attributeClass.lookupValueList.get(value).id;
        }
    }
Returns the integer id of the attribute.

@return The integer id of the attribute.