jef.dna.attributesTable
Interface AttributesTableFactory

All Known Implementing Classes:
ATableFactory

public interface AttributesTableFactory

This interface defines the methods every factory of attribute container classes has to provide.

Author:
Francesco Russo

Method Summary
 AttributesTable getInstance()
          Returns an empty instance of the AttributesTable interface
 AttributesTable getInstance(java.io.DataInputStream dis, Dna dna, int attributesCount)
          Returns a populated instance of the AttributesTable interface
 

Method Detail

getInstance

AttributesTable getInstance()
Returns an empty instance of the AttributesTable interface

Returns:
AttributesTable The implementation instance

getInstance

AttributesTable getInstance(java.io.DataInputStream dis,
                            Dna dna,
                            int attributesCount)
                            throws MissingDnaContainerException,
                                   DnaDeserializationException
Returns a populated instance of the AttributesTable interface

Parameters:
dis - The input stream the table has to be read from
dna - The Dna container
attributesCount - The number of expected attributes
Returns:
AttributesTable The implementation instance
Throws:
MissingDnaContainerException
DnaDeserializationException