public interface FixedPoint extends Real
The following features are supported:
OCLforUMLPackage.getFixedPoint()| Modifier and Type | Method and Description |
|---|---|
int |
getFractionalBits()
Returns the value of the 'Fractional Bits' attribute.
|
int |
getIntegerBits()
Returns the value of the 'Integer Bits' attribute.
|
Overflow |
getOverflow()
Returns the value of the 'Overflow' attribute.
|
Rounding |
getRounding()
Returns the value of the 'Rounding' attribute.
|
boolean |
isBitTrue()
Returns the value of the 'Bit True' attribute.
|
void |
setBitTrue(boolean value)
Sets the value of the '
Bit True' attribute. |
void |
setFractionalBits(int value)
Sets the value of the '
Fractional Bits' attribute. |
void |
setIntegerBits(int value)
Sets the value of the '
Integer Bits' attribute. |
void |
setOverflow(Overflow value)
Sets the value of the '
Overflow' attribute. |
void |
setRounding(Rounding value)
Sets the value of the '
Rounding' attribute. |
getBase_DataType, getEpsilon, getMaximum, getMinimum, isSetEpsilon, isSetMaximum, isSetMinimum, setBase_DataType, setEpsilon, setMaximum, setMinimum, unsetEpsilon, unsetMaximum, unsetMinimumboolean isBitTrue()
setBitTrue(boolean),
OCLforUMLPackage.getFixedPoint_BitTrue()void setBitTrue(boolean value)
Bit True' attribute.
value - the new value of the 'Bit True' attribute.isBitTrue()int getFractionalBits()
"0".
The number of bits used to represent the fractional ptrecision of the fixed point number. This may be negative if the fixed point quantum is greater than 1.
setFractionalBits(int),
OCLforUMLPackage.getFixedPoint_FractionalBits()void setFractionalBits(int value)
Fractional Bits' attribute.
value - the new value of the 'Fractional Bits' attribute.getFractionalBits()int getIntegerBits()
setIntegerBits(int),
OCLforUMLPackage.getFixedPoint_IntegerBits()void setIntegerBits(int value)
Integer Bits' attribute.
value - the new value of the 'Integer Bits' attribute.getIntegerBits()Overflow getOverflow()
"invalid".
The literals are from the enumeration Overflow.
The behavior when a maximum/minimum value is exceeded.
Overflow,
setOverflow(Overflow),
OCLforUMLPackage.getFixedPoint_Overflow()void setOverflow(Overflow value)
Overflow' attribute.
value - the new value of the 'Overflow' attribute.Overflow,
getOverflow()Rounding getRounding()
"nearest".
The literals are from the enumeration Rounding.
The behavior when there is insufficient resolution.
Rounding,
setRounding(Rounding),
OCLforUMLPackage.getFixedPoint_Rounding()void setRounding(Rounding value)
Rounding' attribute.
value - the new value of the 'Rounding' attribute.Rounding,
getRounding()Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.