|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--audiojury.action.ProjectBuilder
Does simple operations on a dynamic Project
.
The class implements the Singleton design pattern, which means
there is only one instance of this class. This is necessary to make concurrent access to
projects impossible. The ProjectBuilder
only operates on one project at a time.
Method Summary | |
Project |
getCurrentProject()
Returns the Project currently being built upon. |
static ProjectBuilder |
getUniqueInstance()
Enforces the Singleton design pattern by always returning the same instance of ProjectBuilder . |
void |
setCurrentProject(Project project)
Sets which Project to make as current.
|
void |
setInstructions(Instruction inst)
Assigns Instruction to the current project. |
void |
setPersItems(java.lang.String[] items)
Assigns which personal attributes to collect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Project getCurrentProject()
Project
currently being built upon.
public void setCurrentProject(Project project)
Project
to make as current.
In other words, which Project
to perform future operations on.
project
- The Project
to build.public void setInstructions(Instruction inst)
Instruction
to the current project.
inst
- The Instruction
to set.public void setPersItems(java.lang.String[] items)
items
- An array of text strings which label the personal attributes.
The labels should be descriptive since they are shown to the user
when running a project. Example ["Name", "Age", "Sex"]public static ProjectBuilder getUniqueInstance()
ProjectBuilder
. This should be used instead of a constructor.
ProjectBuilder
insatance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |