vishnu.model.values
Class NumericValue

java.lang.Object
  extended by 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
           
 
Constructor Summary
NumericValue()
           
NumericValue(double value)
          construye un valor numerico a partir de value.
 
Method Summary
 double asDouble()
          devuelve la representacion del valor numerico como un double.
 boolean equals(java.lang.Object o)
           
 boolean equals(Value v)
           
 ValueClass getValueClass()
          retorna la clase de valor a la que pertener el valor.
 boolean greaterThan(Value v)
           
 boolean greaterThanOrEqual(Value v)
           
 int hashCode()
           
 boolean isNull()
           
 boolean lowerThan(Value v)
           
 boolean lowerThanOrEqual(Value v)
           
 java.lang.String toString()
           
 java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected double value
Constructor Detail

NumericValue

public NumericValue(double value)
construye un valor numerico a partir de value.


NumericValue

public NumericValue()
Method Detail

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