|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines all the high-level functions related to the Author environment. The TarlExecuter solely uses this interface to deal with the Author environment. Some of these functions are initializing the Authors environment, producing an Author, terminating the current year, retreiving the author database, computing the co-authorship graph and cleaning up the Author environment.
AuthorParameters| Method Summary | |
void |
addAuthor(Topic topic)
Adds an Author to the environment with the specified Topic. |
void |
cleanUpAuthor()
Cleans up the Author environment. |
AuthorGroup |
getAuthors()
Returns the group of Authors. |
void |
initializeAuthors(AuthorParameters authorParameters)
Initializes the Author environment to enable various operations on the Authors. |
java.util.Collection |
partitionActiveAuthors()
Returns the Collection of AuthorsTopicBuckets. |
void |
terminateCurrentYear()
Terminates the current year for the Author environment. |
| Method Detail |
public void initializeAuthors(AuthorParameters authorParameters)
Author environment to enable various operations on the Authors. This function should be called before calling any other function in AuthorManager.
authorParameters - Specifies the model parameters related to authors
public void addAuthor(Topic topic)
throws TarlException
Author to the environment with the specified Topic.
topic - Specifies the topic for the author
TarlException - if the specified parameters are insufficient to construct an authorpublic java.util.Collection partitionActiveAuthors()
Collection of AuthorsTopicBuckets. Each AuthorsTopicBucket contains a fixed number of randomly chosen Authors. AuthorsTopicBuckets are mutually exclusive and exhaustive of the entire AuthorDatabase in the system. The number of Authors in each AuthorsTopicBucket should be (number of co-authors + 1). The number of Authors in a few AuthorsTopicBuckets could be less than (number of co-authors + 1).
public void terminateCurrentYear()
Author environment. The function should take the necessary steps that should be taken when the current year ends (for example, notifying authors about year termination).
public AuthorGroup getAuthors()
Authors. This function can be used to generate the Author-Publication graph at the TarlExecuter level where it has access to the group of Authors and Publications.
public void cleanUpAuthor()
Author environment. It is responsible for freeing up resources that the Author environment has used for its execution.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||