|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.tasim.is.common.ResultManager
public abstract class ResultManager
The ResultManager is responsible for storing simulation results for the simulation types it handles. It also generates the result and score web pages.
Constructor Summary | |
---|---|
ResultManager()
|
Method Summary | |
---|---|
protected void |
addSimulationResult(ParticipantInfo[] participants,
double[] scores)
|
protected void |
addSimulationResult(ParticipantInfo[] participants,
long[] scores)
|
protected void |
addSimulationToHistory(ParticipantInfo[] participants)
Adds this simulation to the history table. |
protected void |
addSimulationToHistory(ParticipantInfo[] participants,
java.lang.String[] participantColors)
Adds this simulation to the history table. |
protected abstract void |
generateResult()
generateResult is responsible for:
Storing the result in the database
Generating the result web pages
Updating the total score table for this type of simulation and server
Adding this simulation to the history page
|
void |
generateResult(LogReader logReader,
java.lang.String destinationPath)
|
protected java.lang.String |
getDestinationPath()
Returns the directory where the result pages should be stored. |
protected java.lang.String |
getGameLogName()
|
protected LogReader |
getLogReader()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultManager()
Method Detail |
---|
public final void generateResult(LogReader logReader, java.lang.String destinationPath) throws java.io.IOException
java.io.IOException
protected java.lang.String getDestinationPath()
The path is either an empty string or ends with a file separator and the
result manager should at least create the file
getDestinationPath() + "index.html"
.
protected LogReader getLogReader()
protected java.lang.String getGameLogName()
protected void addSimulationToHistory(ParticipantInfo[] participants)
participants
- the sorted vector with the participants in this simulationprotected void addSimulationToHistory(ParticipantInfo[] participants, java.lang.String[] participantColors)
participants
- the sorted vector with the participants in this simulationparticipantColors
- the HTML colors for the specified participants or
null
if no colors should be usedprotected void addSimulationResult(ParticipantInfo[] participants, long[] scores)
protected void addSimulationResult(ParticipantInfo[] participants, double[] scores)
protected abstract void generateResult() throws java.io.IOException
generateResult
is responsible for:
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |