Interface TaskVerifier
-
public interface TaskVerifierThe interface for a verifier of a task.- Author:
- Fabian Bühler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattachToSimulation(Simulation sim)Attach the verifier to a simulation.TaskInformationgetTaskInformation()Get the current task information.voidverify()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
-
-