|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended byptolemy.math.Precision.PrecisionFormat extended byptolemy.math.Precision.VHDLPrecisionFormat
Defines a Precision string format using the VHDL MSB:LSB precision format. The MSB value specifies the location of the most significant bit and LSB specifies the location of the least significant bit. Negative values are allowed for both MSB and LSB so long as the MSB is greather than the LSB.
This format supports the specification of either signed or unsigned values. The character 'U' must precede the MSB:LSB format to specify an unsigned value. An 'S' character may be applied to specify a signed number. If no 'U' or 'S' signed specification is provided, the precision will default to a signed value.
Parenthesis or brackets are optional around this specification. Examples:
| Field Summary | |
protected java.lang.String |
_regex
Regular expression for IntegerFractionPrecisionFormat. |
| Fields inherited from class ptolemy.math.Precision.PrecisionFormat |
COMMA_OR_FORWARDSLASH, OPTIONAL_L_PARAN, OPTIONAL_L_PARANBRACKET, OPTIONAL_R_PARAN, OPTIONAL_R_PARANBRACKET, OPTIONAL_U_OR_S_GROUP, OPTIONAL_WHITE_SPACE, PERIOD, SIGNED_INTEGER_GROUP, UNSIGNED_INTEGER_GROUP |
| Constructor Summary | |
Precision.VHDLPrecisionFormat()
|
|
| Method Summary | |
Precision |
parseString(java.lang.String str)
Parse the given String argument using the rules of the specific PrecisionFormat that is defined. |
java.lang.String |
printPrecisionFormat(Precision p)
Creates a valid String representation of the Precision object based on the rules of the given string format. |
| Methods inherited from class ptolemy.math.Precision.PrecisionFormat |
parseInteger, parseSignString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.lang.String _regex
| Constructor Detail |
public Precision.VHDLPrecisionFormat()
| Method Detail |
public Precision parseString(java.lang.String str)
Precision.PrecisionFormat
parseString in class Precision.PrecisionFormatstr - String to parse
public java.lang.String printPrecisionFormat(Precision p)
Precision.PrecisionFormat
printPrecisionFormat in class Precision.PrecisionFormatp - Precision object to represent as a String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||