|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--audiojury.action.ResultManager
Wrapper for the ResultPlugin. It mostly forwards all requests to the plugin. 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 results impossible.
Method Summary | |
int |
autoImport()
Fetches results from the shared folder and imports them in the administrator program. |
void |
createReport(java.lang.String filename,
java.util.Vector results)
Creates a report file from the results of a Project .
|
static ResultManager |
getUniqueInstance()
Enforces the Singleton design pattern by always returning the same instance of ResultManager . |
int |
manualImport(java.io.File[] resfiles)
Fetches results from the given files and imports them in the admininstrator program. |
java.util.Vector |
openResults(java.lang.String projname,
int state)
Returns the result of a specific Project . |
void |
saveResults(ProjectResults results)
Saves results from the client. |
void |
setResultPlugin(ResultPlugin plugin)
Use this method to choose which result storage plugin ( ResultPlugin ) to use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setResultPlugin(ResultPlugin plugin)
ResultPlugin
) to use.
plugin
- The desired ResultPlugin
.public java.util.Vector openResults(java.lang.String projname, int state) throws ResultOperationException
Project
.
openResults
in interface ResultProcessing
projname
- A Project
name.state
- In which state to look for the Project
.
ProjectResults
.
ResultOperationException
- if an unhandled error occurs.public void createReport(java.lang.String filename, java.util.Vector results) throws ResultOperationException
Project
.
The report file is comma-separated and can be opened in a spreadsheet
program such as Microsoft Excel. Reports are saved in the directory called
reports in the AudioJury base directory.
createReport
in interface ResultProcessing
filename
- The name of the report to create.results
- A vector containing ProjectResults
objects.
ResultOperationException
- if an unhandled error occurs.public int manualImport(java.io.File[] resfiles) throws ResultOperationException
manualImport
in interface ResultProcessing
resfiles
- An array of files containing ProjectResults
.
ResultOperationException
- if an unhandled error occurs.public int autoImport() throws ResultOperationException, NoSharedFolderException
autoImport
in interface ResultProcessing
ResultOperationException
- if an unhandled error occurs.
NoSharedFolderException
- if no shared folder could be found.public void saveResults(ProjectResults results) throws ResultOperationException
saveResults
in interface ResultProcessing
results
- The ProjectResults
to save.
ResultOperationException
- if an unhandled error occurs.public static ResultManager getUniqueInstance()
ResultManager
. This should be used instead of
a constructor.
ResultManager
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |