Package reporters
Class Timer
java.lang.Object
reporters.TestReporter
reporters.Timer
- All Implemented Interfaces:
OceanReporter
Mesure le temps d'exploration
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Appelée à l'issue de l'explorationvoid
initialise
(Ocean ocean) Appelée avant le début de l'explorationvoid
report
(Coordinate current, Mark old) Appelée à chaque modification du marquage de l'océanMethods inherited from class reporters.TestReporter
cancelActivation, cancelSuspension, getCount, notifyActivation, notifySuspension, putData, replaceData, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface reporters.OceanReporter
cancelActivation, cancelSuspension, notifyActivation, notifySuspension
-
Constructor Details
-
Timer
-
-
Method Details
-
initialise
Description copied from interface:OceanReporter
Appelée avant le début de l'exploration- Specified by:
initialise
in interfaceOceanReporter
- Overrides:
initialise
in classTestReporter
- Parameters:
ocean
- la référence de l'océan qui sera exploré
-
report
Description copied from interface:OceanReporter
Appelée à chaque modification du marquage de l'océan- Specified by:
report
in interfaceOceanReporter
- Overrides:
report
in classTestReporter
- Parameters:
current
- la cellule sur laquelle la dernière modifications a été effectuéeold
- la marque qui se trouvait danscurrent
précédemment
-
finish
public void finish()Description copied from interface:OceanReporter
Appelée à l'issue de l'exploration- Specified by:
finish
in interfaceOceanReporter
- Overrides:
finish
in classTestReporter
-
getData
- Overrides:
getData
in classTestReporter
-