pl.edu.pjwstk.yaod.atoms
Class ReferenceAtom

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

public class ReferenceAtom
extends Atom

Klasa reprezentujaca atom referencji. Zadaniem referencji jest wskazywanie na inny atom. Refrencje lacza sie z atomami zwrotnymi. Usuniecie wskazywanego atomu laczy sie z automatycznym usunieciem referencji.

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
ReferenceAtom(java.lang.String name, AtomID value)
          Tworzy nowy obiekt referencji.
 
Method Summary
 AtomID getValue()
          Zwraca wartosc referencji.
 void setValue(AtomID ptr)
          Ustala wartosc referencji.
 
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

ReferenceAtom

public ReferenceAtom(java.lang.String name,
                     AtomID value)
Tworzy nowy obiekt referencji.
Parameters:
name -  
Throws:
XxxxxxException - if ...
Method Detail

getValue

public AtomID getValue()
Zwraca wartosc referencji.
Returns:
identyfikator atomu wskazywanego przez referencje.

setValue

public void setValue(AtomID ptr)
Ustala wartosc referencji.
Parameters:
ptr - identyfikator atomu wskazywanego przez referencje.