|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines a Publication by defining the necessary functions it should support. The Publication is used to represent the produce by an Author. The minimal attributes of a Publication are :
Publication which has an equivalent integer representation Publication belongs to which has an equivalent TopicInterface representation Publication which has an equivalent AuthorGroupInterface representation Publication which has an equivalent PublicationGroupInterface. The group of citations could be null which is usually used to represent Publications produced at the start of the model. Publications should also support an identification tag that the PublicationDatabase provides to enable other classes to distinguish between different Publications.
PublicationDatabase,
Topic,
AuthorGroup,
PublicationGroup| Method Summary | |
boolean |
equals(Publication publicationInterface)
Tests whether the current Publication is the same as the specified one. |
AuthorGroup |
getAuthors()
Returns the Authors who have collaborated for the Publication |
PublicationGroup |
getCitations()
Returns the citations of the Publication |
int |
getId()
Returns the unique identifier assigned by the PublicationDatabaseInterface of the Publication as an integer |
Topic |
getTopic()
Returns the Topic of the Publication |
int |
getYear()
Returns the year of publication |
void |
initialize(int id,
int year,
Topic topic,
AuthorGroup authors)
Initializes the Publications with the specified parameters |
void |
initialize(int id,
int year,
Topic topic,
AuthorGroup authors,
PublicationGroup citations)
Initializes the Publications with the specified parameters |
| Method Detail |
public void initialize(int id,
int year,
Topic topic,
AuthorGroup authors)
throws TarlException
Publications with the specified parameters
id - Specifies the unique publication identificationyear - 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 initialize(int id,
int year,
Topic topic,
AuthorGroup authors,
PublicationGroup citations)
throws TarlException
Publications with the specified parameters
id - Specifies the unique publication identificationyear - Specifies the year of publicationtopic - Specifies the topic of the publicationauthors - Specifies the authors who have collaborated for the publicationcitations - Specifies the citations for the publication
TarlException - if the new publication cannot be initializedpublic int getId()
PublicationDatabaseInterface of the Publication as an integer
public int getYear()
public Topic getTopic()
Topic of the Publication
public AuthorGroup getAuthors()
Authors who have collaborated for the Publication
public PublicationGroup getCitations()
Publication
public boolean equals(Publication publicationInterface)
Publication is the same as the specified one. This test should be based on the identification tag that the PublicationDatabase has assigned to both the Publications.
publicationInterface - Specifies the publication to be equated against
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||