class AbstractAttributeProvider implements AttributeProvider, Iterable<Attribute> {

	@Pure
	@Override
	public double getAttributeAsDouble(String name) throws AttributeException {
		final AttributeValue value = getAttribute(name);
		if (value == null) {
			throw new NoAttributeFoundException(name);
		}
		return value.getReal();
	}

}