edu.iu.iv.modeling.tarl.author.impl
Class DefaultAuthorManager

java.lang.Object
  |
  +--edu.iu.iv.modeling.tarl.author.impl.DefaultAuthorManager
All Implemented Interfaces:
AuthorManager

public class DefaultAuthorManager
extends java.lang.Object
implements AuthorManager

This class defines a default implementation to the AuthorManagerInterface. It utilizes the default implementations of the standard interfaces to achieve its cause.

Author:
Jeegar T Maru
See Also:
DefaultAuthorDatabase, DefaultAuthorUtility, AuthorManager

Constructor Summary
DefaultAuthorManager()
          Creates a new instance of the AuthorManager
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthorManager

public DefaultAuthorManager()
Creates a new instance of the AuthorManager

Method Detail

initializeAuthors

public void initializeAuthors(AuthorParameters authorParameters)
Initializes the Author environment to enable various operations on the Authors

Specified by:
initializeAuthors in interface AuthorManager
Parameters:
authorParameters - Specifies the model parameters related to authors

addAuthor

public void addAuthor(Topic topic)
               throws TarlException
Adds an Author to the environment with the specified Topic.

Specified by:
addAuthor in interface AuthorManager
Parameters:
topic - Specifies the topic for the author
Throws:
TarlException - if the specified parameters are insufficient to construct an author

partitionActiveAuthors

public java.util.Collection partitionActiveAuthors()
Returns the Collection of AuthorsTopicBuckets.

Specified by:
partitionActiveAuthors in interface AuthorManager
Returns:
the collection of author groups

terminateCurrentYear

public void terminateCurrentYear()
Terminates the current year for the 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).

Specified by:
terminateCurrentYear in interface AuthorManager

getAuthors

public AuthorGroup getAuthors()
Returns the group of Authors.

Specified by:
getAuthors in interface AuthorManager
Returns:
the group of authors in the system

cleanUpAuthor

public void cleanUpAuthor()
Cleans up the Author environment. It is responsible for freeing up resources that the Author environment has used for its execution.

Specified by:
cleanUpAuthor in interface AuthorManager