Package reporters

Class TestReporter

java.lang.Object
reporters.TestReporter
All Implemented Interfaces:
OceanReporter
Direct Known Subclasses:
BackTrackReporter, BackTrackReporter2, CountMarks, DistanceReporter, NemoDistanceReporter, NoMarkOverwrites, SharkReporter, StackReporter, Timer, WallReporter

public abstract class TestReporter extends Object implements OceanReporter
  • Field Details

  • Constructor Details

    • TestReporter

      public TestReporter(String name, HashMap<String,Object> data, boolean print)
    • TestReporter

      public TestReporter()
  • Method Details

    • initialise

      public void initialise(Ocean ocean)
      Description copied from interface: OceanReporter
      Appelée avant le début de l'exploration
      Specified by:
      initialise in interface OceanReporter
      Parameters:
      ocean - la référence de l'océan qui sera exploré
    • report

      public void report(Coordinate current, Mark old)
      Description copied from interface: OceanReporter
      Appelée à chaque modification du marquage de l'océan
      Specified by:
      report in interface OceanReporter
      Parameters:
      current - la cellule sur laquelle la dernière modifications a été effectuée
      old - la marque qui se trouvait dans current précédemment
    • finish

      public void finish()
      Description copied from interface: OceanReporter
      Appelée à l'issue de l'exploration
      Specified by:
      finish in interface OceanReporter
    • notifySuspension

      public boolean notifySuspension()
      Description copied from interface: OceanReporter
      Appelée lorsque quelqu'un tente de désactiver le rapporteur
      Specified by:
      notifySuspension in interface OceanReporter
      Returns:
      true si la désactivation est acceptée
    • cancelSuspension

      public void cancelSuspension()
      Description copied from interface: OceanReporter
      Appelée lorsque la désactivation est annulée par un des rapporteurs
      Specified by:
      cancelSuspension in interface OceanReporter
    • notifyActivation

      public boolean notifyActivation()
      Description copied from interface: OceanReporter
      Appelée lorsque quelqu'un tente d'activer le rapporteur
      Specified by:
      notifyActivation in interface OceanReporter
      Returns:
      true si l'activation est acceptée
    • cancelActivation

      public void cancelActivation()
      Description copied from interface: OceanReporter
      Appelée lorsque l'activation est annulée par un des rapporteurs
      Specified by:
      cancelActivation in interface OceanReporter
    • putData

      protected Object putData(Object value)
    • replaceData

      protected Object replaceData(Object value)
    • getData

      public Object getData(String oceanName)
    • getCount

      public int getCount()
    • toString

      public String toString()
      Overrides:
      toString in class Object