public class Statistic extends Object
Constructor and Description |
---|
Statistic() |
Modifier and Type | Method and Description |
---|---|
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(String connName) |
void |
logRequestActionPercept(String connName) |
void |
logSimEndPercept(String connName) |
void |
logSimStartPercept(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(String achievement,
String name) |
void |
submitAction(String name,
int actionID,
String type,
long timestamp) |
void |
submitActionResult(String name,
String lastActionType,
String lastActionResult) |
void |
submitRequest(String name,
int actionID) |
void |
submitZoneScore(Integer score,
String name) |
void |
submitZonesScore(Integer score,
String name) |
public static final String TEST_FLAG
public void onSimulationEnd()
public void setLogToFile()
public void setLogToShell()
public void disableSend()
public void enableTestMode()
public void submitRequest(String name, int actionID)
public void logSimStartPercept(String connName)
public void logSimEndPercept(String connName)
public void logRequestActionPercept(String connName)
public void logByePercept(String connName)
public void submitActionResult(String name, String lastActionType, String lastActionResult)
name
- the connection's namelastActionType
- the type of the agent's last actionlastActionResult
- the result of the actionpublic boolean[] getSettings()
public void applySettingsOf(Statistic statistic)
statistic
- Copyright © 2013. All Rights Reserved.