pl.edu.pjwstk.yaod.atoms
Class JavaDoubleAtom

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.atoms.Atom
        |
        +--pl.edu.pjwstk.yaod.atoms.DoubleAtom
              |
              +--pl.edu.pjwstk.yaod.atoms.JavaDoubleAtom
All Implemented Interfaces:
Bufferable, java.io.Serializable

public class JavaDoubleAtom
extends DoubleAtom

Klasa reprezentujaca atom skladu obiektow javy. Pozwala na podpiecie do tego skladu dowolnego obiektu Double Javy.

Author:
M. Lentner, raist@ertel.com.pl
See Also:
Serialized Form

Fields inherited from class pl.edu.pjwstk.yaod.atoms.Atom
ALL_TYPES
 
Constructor Summary
JavaDoubleAtom(java.lang.String name, java.lang.Object obj, java.lang.String attr)
          Tworzy nowy atom.
 
Method Summary
 double getValue()
          Zwraca wartosc atomu.
 void setValue(double val)
          Ustala wartosc atomu (obiektu Javy).
 
Methods inherited from class pl.edu.pjwstk.yaod.atoms.Atom
getAID, getName, getNext, getOwner, getPrevious, getType, isModified, setAID, setModified, setName, setNext, setOwner, setPrevious
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDoubleAtom

public JavaDoubleAtom(java.lang.String name,
                      java.lang.Object obj,
                      java.lang.String attr)
               throws java.lang.NoSuchFieldException
Tworzy nowy atom.
Parameters:
name - nazwa atomu.
obj - obiekt zawierajacy atrybut majacy byc wartoscia atomu.
attr - nazwa atrybutu obiektu obj, ktorego wartosc ma byc wartoscia atomu.
Throws:
java.lang.NoSuchFieldException - nazwa atrybutu nie istnieje w podanym obiekcie.
Method Detail

setValue

public void setValue(double val)
Ustala wartosc atomu (obiektu Javy).
Overrides:
setValue in class DoubleAtom
Parameters:
val - nowa wartosc atomu.

getValue

public double getValue()
Zwraca wartosc atomu.
Overrides:
getValue in class DoubleAtom
Returns:
wartosc atomu.