package org.wikidata.wdtk.datamodel.interfaces;

/*
 * #%L
 * Wikidata Toolkit Data Model
 * %%
 * Copyright (C) 2014 Wikidata Toolkit Developers
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import java.math.BigDecimal;

/**
 * A quantity value represents a number, possibly under some unit. The number
 * can be of arbitrary precision. Additional upper and lower bounds are provided
 * to allow an interval of uncertainty to be defined.
 * <p>
 * As of Jan 2014, units of measurement are not supported yet. The interface may
 * be extended to account for this in the future. It is intended to use external
 * definitions for units and to identify units by wikidata.org entity ids.
 *
 * @author Markus Kroetzsch
 *
 */
public interface QuantityValue extends Value {

	/**
	 * Returns the main numeric value of this quantity.
	 *
	 * @return numeric value as a decimal value of arbitrary precision
	 */
	BigDecimal getNumericValue();

	/**
	 * Returns the upper bound for the numeric value of this quantity.
	 *
	 * @return numeric value as a decimal value of arbitrary precision
	 */
	BigDecimal getLowerBound();

	/**
	 * Returns the upper bound for the numeric value of this quantity.
	 *
	 * @return numeric value as a decimal value of arbitrary precision
	 */
	BigDecimal getUpperBound();

	/**
	 * Returns the unit of this quantity, or an empty string if there is no
	 * unit. Units are typically encoded as entity IRIs.
	 *
	 * @return unit string, or empty string if no unit is given
	 */
	String getUnit();

}

@@ -325,17 +325,16 @@
 se at%0A *
- 
 %0A *     
@@ -379,17 +379,16 @@
 E-2.0%0A *
- 
 %0A * Unle
@@ -964,252 +964,8 @@
 ed.%0A
- * %3Cp%3E%0A * As of Jan 2014, units of measurement are not supported yet. The interface may%0A * be extended to account for this in the future. It is intended to use external%0A * definitions for units and to identify units by wikidata.org entity ids.%0A
  *%0A 

Update documentation: units are already implemented now