DRCL J-Sim API

drcl.data
Class DoubleObj

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.data.NumberObj
          extended bydrcl.data.DoubleObj
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class DoubleObj
extends NumberObj

Class that is similar to Double but is mutable.

See Also:
Serialized Form

Field Summary
 double value
           
 
Constructor Summary
DoubleObj()
           
DoubleObj(double v)
           
 
Method Summary
 byte byteValue()
           
 double doubleValue()
           
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 boolean equals(java.lang.Object o)
           
 float floatValue()
           
 double getValue()
           
 int hashCode()
           
 double inc(double delta_)
          Increases the double by delta_ and returns the new value.
 int intValue()
           
 long longValue()
           
 void setValue(double v)
           
 short shortValue()
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value
Constructor Detail

DoubleObj

public DoubleObj()

DoubleObj

public DoubleObj(double v)
Method Detail

setValue

public void setValue(double v)

getValue

public double getValue()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

inc

public double inc(double delta_)
Increases the double by delta_ and returns the new value.


toString

public java.lang.String toString()
Overrides:
toString in class DrclObj

byteValue

public byte byteValue()
Specified by:
byteValue in class NumberObj

floatValue

public float floatValue()
Specified by:
floatValue in class NumberObj

doubleValue

public double doubleValue()
Specified by:
doubleValue in class NumberObj

intValue

public int intValue()
Specified by:
intValue in class NumberObj

longValue

public long longValue()
Specified by:
longValue in class NumberObj

shortValue

public short shortValue()
Specified by:
shortValue in class NumberObj

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~