public float getAnimationLength(String name) {
        Animation a = animationMap.get(name);
        if (a == null) {
            throw new IllegalArgumentException("The animation " + name
                    + " does not exist in this AnimControl");
        }

        return a.getLength();
    }
Returns the length of the given named animation.

@param name The name of the animation
@return The length of time, in seconds, of the named animation.
jme3-core/src/main/java/com/jme3/animation/AnimControl.java