pl.edu.pjwstk.yaod.objects
Class YDouble

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.objects.YObject
        |
        +--pl.edu.pjwstk.yaod.objects.YSimpleObject
              |
              +--pl.edu.pjwstk.yaod.objects.YDouble
Direct Known Subclasses:
YJavaDouble

public class YDouble
extends YSimpleObject

Klasa rozszerzajaca mozliwosci statycznych struktur, jakimi sa atomy typu double.

Author:
M. Lentner, raist@ertel.com.pl

Constructor Summary
YDouble(SVRP sp, DoubleAtom atm)
           
YDouble(SVRP sp, java.lang.String name, double value)
          Tworzy nowy obiekt zawierajacy wartosc double.
 
Method Summary
 double getValue()
          Zwraca wartosc obiektu.
 void setValue(double val)
          Ustala wartosc obiektu.
 java.lang.String stringValue()
          Konwertuje double na string.
 
Methods inherited from class pl.edu.pjwstk.yaod.objects.YObject
connect, disconnect, getAtom, getBackward, getName, getNextSibling, getOID, getOwner, getPreviousSibling, getServer, reconnect, reconnectAfter, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YDouble

public YDouble(SVRP sp,
               java.lang.String name,
               double value)
Tworzy nowy obiekt zawierajacy wartosc double.
Parameters:
sp - proces uslugowy.
name - nazwa obiektu.
value - wartosc obiektu.

YDouble

public YDouble(SVRP sp,
               DoubleAtom atm)
Parameters:
sp - proces uslugowy wykonujacy operacje dla danego obiektu.
atm - istniejacy w skladzie atom.
Method Detail

getValue

public double getValue()
Zwraca wartosc obiektu.
Returns:
wartosc obiektu.

setValue

public void setValue(double val)
Ustala wartosc obiektu.
Parameters:
val - nowa wartosc.

stringValue

public java.lang.String stringValue()
Konwertuje double na string.
Overrides:
stringValue in class YSimpleObject
Returns:
wartosc jako string.