|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.ScaledInteger
byucc.edif.ExpValue
public class ExpValue
Represents a base number with an exponent value. This object is immutable.
| Field Summary | |
|---|---|
private int |
_exp
The exponent (in powers of 10) of the base number. |
| Fields inherited from class byucc.edif.ScaledInteger |
|---|
_integerValue |
| Constructor Summary | |
|---|---|
ExpValue(int base,
int exp)
Construct an ExpValue Object with the specified base and exponent. |
|
| Method Summary | |
|---|---|
boolean |
equals(EdifTypedValue value)
|
int |
getBase()
Return the base value of this object. |
int |
getExp()
Return the exponent of this object. |
double |
getValue()
Return 10 raised to the exponent multiplied by the base number. |
java.lang.String |
toString()
Return a String representation of this Object. |
| Methods inherited from class byucc.edif.ScaledInteger |
|---|
getIntegerValue, toEdif |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int _exp
| Constructor Detail |
|---|
public ExpValue(int base,
int exp)
base - The base numberexp - The base number is raised to this exponent| Method Detail |
|---|
public boolean equals(EdifTypedValue value)
equals in interface EdifTypedValueequals in class ScaledIntegerpublic int getBase()
public int getExp()
public double getValue()
public java.lang.String toString()
toString in class ScaledInteger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||