|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.eismassim.Statistic
public class Statistic
Class to be used for some statistic purpose, e.g. the time between requests and actions or the total number of actions of a distinct type
Field Summary | |
---|---|
static java.lang.String |
TEST_FLAG
|
Constructor Summary | |
---|---|
Statistic()
|
Method Summary | |
---|---|
void |
applySettingsOf(Statistic statistic)
Apply toShell, toFile and submit-settings of given statistic to this statistic |
void |
disableSend()
|
void |
enableTestMode()
this method will guarantee, that results submitted via php will contain a special flag that marks them as testing-results, so they can be sorted out |
boolean[] |
getSettings()
1: toFile 2: toShell 3: submit |
void |
logByePercept(java.lang.String connName)
|
void |
logRequestActionPercept(java.lang.String connName)
|
void |
logSimEndPercept(java.lang.String connName)
|
void |
logSimStartPercept(java.lang.String connName)
|
void |
onSimulationEnd()
Print the gathered data to a file and/or to the shell and/or submit them |
void |
setLogToFile()
|
void |
setLogToShell()
|
void |
submitAchievement(java.lang.String achievement,
java.lang.String name)
|
void |
submitAction(java.lang.String name,
int actionID,
java.lang.String type,
long timestamp)
|
void |
submitActionResult(java.lang.String name,
java.lang.String lastActionType,
java.lang.String lastActionResult)
|
void |
submitRequest(java.lang.String name,
int actionID)
|
void |
submitZoneScore(java.lang.Integer score,
java.lang.String name)
|
void |
submitZonesScore(java.lang.Integer score,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEST_FLAG
Constructor Detail |
---|
public Statistic()
Method Detail |
---|
public void onSimulationEnd()
public void setLogToFile()
public void setLogToShell()
public void disableSend()
public void enableTestMode()
public void submitRequest(java.lang.String name, int actionID)
public void submitAction(java.lang.String name, int actionID, java.lang.String type, long timestamp)
public void logSimStartPercept(java.lang.String connName)
public void logSimEndPercept(java.lang.String connName)
public void logRequestActionPercept(java.lang.String connName)
public void logByePercept(java.lang.String connName)
public void submitActionResult(java.lang.String name, java.lang.String lastActionType, java.lang.String lastActionResult)
name
- the connection's namelastActionType
- the type of the agent's last actionlastActionResult
- the result of the actionpublic void submitZoneScore(java.lang.Integer score, java.lang.String name)
public void submitZonesScore(java.lang.Integer score, java.lang.String name)
public void submitAchievement(java.lang.String achievement, java.lang.String name)
public boolean[] getSettings()
public void applySettingsOf(Statistic statistic)
statistic
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |