|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.modeling.tarl.publication.impl.DefaultPublicationDatabase
This class defines a default implementation of PublicationDatabaseInterface. It uses a PublicationGroup to store the Publications.
DefaultPublication,
DefaultPublicationGroup,
PublicationDatabase| Constructor Summary | |
DefaultPublicationDatabase()
Creates a new instance for a PublicationDatabase |
|
| Method Summary | |
void |
addPublication(int year,
Topic topic,
AuthorGroup authors)
Adds a Publication to the group |
void |
addPublication(int year,
Topic topic,
AuthorGroup authors,
PublicationGroup citations)
Adds a Publication to the group |
Publication |
getNextPublication()
Returns the next Publication in the database |
PublicationGroup |
getPublications()
Returns the group of Publications in the Database |
boolean |
hasMorePublications()
Tests whether the Database has more publications for iteration |
void |
removeAll()
Removes all the Publications from the database |
void |
resetSearchIndex()
Resets the Search Index so the Database can be searched iteratively |
int |
size()
Returns the number of Publications in the Database |
java.lang.String |
toString()
Returns the details of the PublicationDatabase as a String |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultPublicationDatabase()
PublicationDatabase
| Method Detail |
public void addPublication(int year,
Topic topic,
AuthorGroup authors)
throws TarlException
Publication to the group
addPublication in interface PublicationDatabaseyear - Specifies the year of publicationtopic - Specifies the topic of the publicationauthors - Specifies the authors who have collaborated for the publication
TarlException - if the new publication cannot be initialized
public void addPublication(int year,
Topic topic,
AuthorGroup authors,
PublicationGroup citations)
throws TarlException
Publication to the group
addPublication in interface PublicationDatabaseyear - Specifies the year of publicationtopic - Specifies the topic of the publicationauthors - Specifies the authors who have collaborated for the publicationcitations - Specifies the publications that this publication cites
TarlException - if the new publication cannot be initializedpublic void removeAll()
Publications from the database
removeAll in interface PublicationDatabasepublic PublicationGroup getPublications()
Publications in the Database
getPublications in interface PublicationDatabasepublic int size()
Publications in the Database
size in interface PublicationDatabasepublic void resetSearchIndex()
resetSearchIndex in interface PublicationDatabasepublic boolean hasMorePublications()
hasMorePublications in interface PublicationDatabase
public Publication getNextPublication()
throws java.util.NoSuchElementException
Publication in the database
getNextPublication in interface PublicationDatabasejava.util.NoSuchElementException - if the iteration has no more publicationspublic java.lang.String toString()
PublicationDatabase as a String
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||