X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmodel%2Fapi%2Ftype%2FDecimalTypeDefinition.java;fp=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmodel%2Fapi%2Ftype%2FDecimalTypeDefinition.java;h=78ca2ac347eb2b441efaaf84ff81de944db9653d;hp=0000000000000000000000000000000000000000;hb=42210c03b0a4c54706320ba9f55794c0abd4d201;hpb=7576b38152b393793b1c9ec3df0ff86685f95236 diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/model/api/type/DecimalTypeDefinition.java b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/model/api/type/DecimalTypeDefinition.java new file mode 100644 index 0000000000..78ca2ac347 --- /dev/null +++ b/opendaylight/sal/yang-prototype/yang/yang-model-api/src/main/java/org/opendaylight/controller/model/api/type/DecimalTypeDefinition.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.model.api.type; + +import java.util.List; + +import org.opendaylight.controller.yang.model.api.TypeDefinition; + +public interface DecimalTypeDefinition extends + TypeDefinition { + + List getRangeStatements(); + + /** + * Returns integer between 1 and 18 inclusively.
+ *
+ * + * The "fraction-digits" statement controls the size of the minimum + * difference between values of a decimal64 type, by restricting the value + * space to numbers that are expressible as "i x 10^-n" where n is the + * fraction-digits argument. + * + * @return + */ + Integer getFractionDigits(); +}