Interface TaskVerifier
-
public interface TaskVerifier
The interface for a verifier of a task.- Author:
- Fabian Bühler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
attachToSimulation(Simulation sim)
Attach the verifier to a simulation.TaskInformation
getTaskInformation()
Get the current task information.void
verify()
Verify if the current state of the simulation matches the requirements for the successful completion of the task.
-
-
-
Method Detail
-
attachToSimulation
void attachToSimulation(Simulation sim)
Attach the verifier to a simulation.Must be called by the simulation or the simulation builder.
- Parameters:
sim
- the simulation to verify
-
verify
void verify()
Verify if the current state of the simulation matches the requirements for the successful completion of the task.This method should update the task information returned by
getTaskInformation()
.
-
getTaskInformation
TaskInformation getTaskInformation()
Get the current task information.The information returned by this method should not change unless
verify()
is called.- Returns:
- the task information
-
-