vishnu.model.values
Class NumericValue
java.lang.Object
vishnu.model.values.NumericValue
- All Implemented Interfaces:
- java.io.Serializable, Value
public class NumericValue
- extends java.lang.Object
- implements Value
Esta clase representa a los valores numericos (flotantes) del motor.
- Author:
- Mariano Tepper
- See Also:
- Serialized Form
-
Field Summary |
protected double |
value
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
value
protected double value
NumericValue
public NumericValue(double value)
- construye un valor numerico a partir de value.
NumericValue
public NumericValue()
asDouble
public double asDouble()
- devuelve la representacion del valor numerico como un double.
equals
public boolean equals(Value v)
- Specified by:
equals
in interface Value
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getValueClass
public ValueClass getValueClass()
- Description copied from interface:
Value
- retorna la clase de valor a la que pertener el valor.
- Specified by:
getValueClass
in interface Value
toString
public java.lang.String toString()
- Specified by:
toString
in interface Value
- Overrides:
toString
in class java.lang.Object
greaterThan
public boolean greaterThan(Value v)
- Specified by:
greaterThan
in interface Value
greaterThanOrEqual
public boolean greaterThanOrEqual(Value v)
- Specified by:
greaterThanOrEqual
in interface Value
lowerThan
public boolean lowerThan(Value v)
- Specified by:
lowerThan
in interface Value
lowerThanOrEqual
public boolean lowerThanOrEqual(Value v)
- Specified by:
lowerThanOrEqual
in interface Value
isNull
public boolean isNull()
- Specified by:
isNull
in interface Value
value
public java.lang.Object value()
- Specified by:
value
in interface Value