|
|||||||||||
| 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.DefaultPublicationManager
This class defines a default implementation of the PublicationManagerInterface which manages the group of publications. It uses an instance of the PublicationDatabase to perform its tasks.
DefaultPublicationDatabase,
PublicationManager| Constructor Summary | |
DefaultPublicationManager()
Creates a new instance of a PublicationManager with the default current year 0 |
|
DefaultPublicationManager(PublicationParameters publicationParameters)
Creates a new instance of a PublicationManager with the given current year |
|
| Method Summary | |
void |
cleanUpPublication()
Cleans up the publication environment by removing all the instances of the Publications from the database |
PublicationGroup |
getPublications()
Returns all the Publications in the environment |
void |
initializePublications(PublicationParameters publicationParameters,
java.io.File agingFunctionFile)
Initializes the Publications environment with the specified model parameters |
void |
producePublications(AuthorsTopicBucket authorsTopicBucket)
Produces the Publications for the specified authors and topic |
void |
producePublicationsAtStart(AuthorsTopicBucket authorsTopicBucket)
Produces the Publications for the specified authors and topic at the very start of the model |
void |
terminateCurrentYear()
Terminates the current year. |
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 DefaultPublicationManager()
public DefaultPublicationManager(PublicationParameters publicationParameters)
publicationParameters - Specifies the model parameters related to publication environment| Method Detail |
public void initializePublications(PublicationParameters publicationParameters,
java.io.File agingFunctionFile)
Publications environment with the specified model parameters
initializePublications in interface PublicationManagerpublicationParameters - Specifies the publication parameters for the model
public void producePublicationsAtStart(AuthorsTopicBucket authorsTopicBucket)
throws TarlException
Publications for the specified authors and topic at the very start of the model
producePublicationsAtStart in interface PublicationManagerauthorsTopicBucket - Specifies the authors and topic for the new publications
TarlException - if the new publications cannot be initialized
public void producePublications(AuthorsTopicBucket authorsTopicBucket)
throws TarlException
Publications for the specified authors and topic
producePublications in interface PublicationManagerauthorsTopicBucket - Specifies the authors and topic for the new publications
TarlException - if the new publications cannot be initializedpublic void terminateCurrentYear()
PublicationManager can update its internal copy of current_year.
terminateCurrentYear in interface PublicationManagerpublic PublicationGroup getPublications()
Publications in the environment
getPublications in interface PublicationManagerpublic void cleanUpPublication()
Publications from the database
cleanUpPublication in interface PublicationManagerpublic 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 | ||||||||||