|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--audiojury.domain.Project
Represents a Project.
| Field Summary | |
static int |
ACTIVE
State constant: The project is in active state. |
static int |
CLOSED
State constant: The project is in closed state |
static int |
DYNAMIC
State constant: The project is in dynamic state. |
| Constructor Summary | |
Project()
Creates a new Project object. |
|
| Method Summary | |
void |
addTest(Test test)
Adds a Test to the Project. |
Test[] |
getAllTests()
Retrieves all Tests in the Project. |
Instruction |
getInstructions()
Gets the Instructions for the Project. |
java.lang.String |
getName()
Gets the name of the Project. |
java.lang.String[] |
getPersItems()
Gets a list of all the personal information attributes to collect from the test subjects. |
int |
getState()
Gets the state of the Project.
|
Test |
getTest(java.lang.String tname)
Retrieves a specific Test from the Project. |
java.util.Hashtable |
getTests()
Returns all tests in the project except with those marked as DELETED. |
void |
initProject()
Recreates internal objects lost in a serialization. |
void |
removeTest(java.lang.String tname)
Removes a Test from the Project. |
void |
setInstructions(Instruction inst)
Assigns an Instruction to the Project. |
void |
setName(java.lang.String pname)
Sets the name of the Project. |
void |
setPersItems(java.lang.String[] items)
Sets which personal information attributes to collect from the test subjects. |
void |
setState(int pstate)
Set the state of a Project.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DYNAMIC
public static final int ACTIVE
public static final int CLOSED
| Constructor Detail |
public Project()
Project object.
| Method Detail |
public void initProject()
public java.lang.String getName()
Project.
public void setName(java.lang.String pname)
Project.
pname - The desired name.public int getState()
Project.
States are defined as static integers in Project.
integer representing the state the project is in.public void setState(int pstate)
Project.
Note that this should only be done by the ProjectManager.
pstate - The desired state.public void addTest(Test test)
Test to the Project.
test - The Test to add.public void removeTest(java.lang.String tname)
Test from the Project.
tname - The name of the Test to remove.public java.util.Hashtable getTests()
public Test[] getAllTests()
Tests in the Project.
Tests are sorted according their Status (with a help of Test.compareTo()).
Ordering of test is important for project save operation, when
first are saved VIRGIN tests, then RENAMED, NEW and last DELETED.
( TMP test is not taken into account)
For NEW tests, first are saved tests which have no Origin, that means
a test is not a duplicate.
Tests as a sorted a sorted set represented by TreeSet.public Test getTest(java.lang.String tname)
Test from the Project.
tname - The name of the Test to retrieve.
Test object.public Instruction getInstructions()
Instructions for the Project.
Instruction object of this project.public void setInstructions(Instruction inst)
Instruction to the Project.
inst - The Instruction to assign.public java.lang.String[] getPersItems()
public void setPersItems(java.lang.String[] items)
items - The array of label strings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||