public double getAttributeNumber ( ScoreAttribute sa ) { if ( ! ( sa . getDefaultValue ( ) instanceof Number ) ) throw new RuntimeException ( sa . toString ( ) + " is not a number attribute" ) ; return ( ( Number ) getAttributeObject ( sa ) ) . doubleValue ( ) ; }
Returns the number value associated to an attribute as a double .