pl.edu.pjwstk.yaod.store.defaultstore.blocks
Class BlockID

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.store.AbstractBlockID
        |
        +--pl.edu.pjwstk.yaod.store.defaultstore.blocks.BlockID
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PersistentBlockID, TransientBlockID

public abstract class BlockID
extends AbstractBlockID

Klasa reprezentuje identyfikator bloku. Jest rozszerzana przez identyfikatory blokow poszczegolnych skladow, poniewaz stosuja one zupelnie inne techniki identyfikacji blokow. Identyfikator bloku sklada sie zatem z numeru skladu oraz identyfikatora charakterystycznego dla niego.

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

Constructor Summary
BlockID(short store)
          Tworzy nowy identyfikator bloku nalezacego do skladu o podanym identyfikatorze.
 
Method Summary
abstract  short sizeOf()
          Zwraca dlugosc identyfikatora bloku po jego zserializowaniu.
abstract  byte[] toByteArray()
          Serializuje identyfikator bloku.
 
Methods inherited from class pl.edu.pjwstk.yaod.store.AbstractBlockID
equals, getStoreID, hashCode, setStoreID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockID

public BlockID(short store)
Tworzy nowy identyfikator bloku nalezacego do skladu o podanym identyfikatorze.
Parameters:
store - identyfikator skladu, do ktorego nalezy blok.
Method Detail

sizeOf

public abstract short sizeOf()
Zwraca dlugosc identyfikatora bloku po jego zserializowaniu.
Returns:
dlugosc identyfikatora bloku.

toByteArray

public abstract byte[] toByteArray()
Serializuje identyfikator bloku.
Returns:
zserializowany identyfikator bloku.