public abstract class TestCase extends Object implements Callable<TestCaseResult>, ISimulationStateObserver
Modifier and Type | Field and Description |
---|---|
protected RobocupServerAddress |
address |
protected AgentMonitor |
agentServer |
private boolean |
initialized |
protected double |
initTime |
private static Logger |
logger |
protected RobocupMonitor |
monitor |
protected RobocupServer |
server |
protected SimulationState |
simulationState |
protected boolean |
updated |
Constructor and Description |
---|
TestCase() |
Modifier and Type | Method and Description |
---|---|
TestCaseResult |
call() |
protected void |
destroy() |
abstract TestCaseResult |
evaluate(SimulationState ss) |
double |
getElapsedTime() |
double |
getInitTime() |
protected boolean |
init() |
abstract boolean |
isStopCriterionMet(SimulationState ss) |
boolean |
isUpdated() |
void |
setInitTime(double initTime) |
void |
setUpdated(boolean updated) |
void |
update() |
private static Logger logger
protected RobocupServerAddress address
protected RobocupServer server
protected RobocupMonitor monitor
protected SimulationState simulationState
protected AgentMonitor agentServer
protected boolean updated
protected double initTime
private boolean initialized
public void update()
update
in interface ISimulationStateObserver
public TestCaseResult call() throws Exception
call
in interface Callable<TestCaseResult>
Exception
public boolean isUpdated()
public void setUpdated(boolean updated)
public void setInitTime(double initTime)
public double getInitTime()
public double getElapsedTime()
protected boolean init()
public abstract boolean isStopCriterionMet(SimulationState ss)
public abstract TestCaseResult evaluate(SimulationState ss)
protected void destroy()