.. java:import:: ch.epfl.leb.sass.utils DeepCopy .. java:import:: ch.epfl.leb.sass.logging Message .. java:import:: ch.epfl.leb.sass.logging Listener .. java:import:: ch.epfl.leb.sass.models Microscope .. java:import:: ch.epfl.leb.sass.models.fluorophores Fluorophore .. java:import:: ch.epfl.leb.sass.utils.images ImageS .. java:import:: ch.epfl.leb.sass.utils.images ImageShapeException .. java:import:: ch.epfl.leb.sass.utils.images.internal DefaultImageS .. java:import:: com.google.gson Gson .. java:import:: com.google.gson JsonArray .. java:import:: com.google.gson JsonObject .. java:import:: com.google.gson JsonElement .. java:import:: com.google.gson GsonBuilder .. java:import:: java.io File .. java:import:: java.io Writer .. java:import:: java.io FileWriter .. java:import:: java.io IOException .. java:import:: java.util List .. java:import:: java.util HashMap .. java:import:: java.util ArrayList .. java:import:: java.util.logging Level .. java:import:: java.util.logging Logger DefaultSimulator.StateListener ============================== .. java:package:: ch.epfl.leb.sass.simulator.internal :noindex: .. java:type:: class StateListener implements Listener :outertype: DefaultSimulator The StateListener listens for changes in the simulation's state. These changes can occur at any time on a continuous interval between the simulation time steps. Fields ------ transitions ^^^^^^^^^^^ .. java:field:: ArrayList transitions :outertype: DefaultSimulator.StateListener A cache containing the state transition messages. Methods ------- dumpMessageCache ^^^^^^^^^^^^^^^^ .. java:method:: public List dumpMessageCache() :outertype: DefaultSimulator.StateListener Dumps the contents of the cache to a JSON string. Calling this method will irreversibly clear the cache. This method will return null if the cache is empty. :return: The contents of the cache as JSON string or null. update ^^^^^^ .. java:method:: @Override public void update(Object data) :outertype: DefaultSimulator.StateListener This method is called by an Observable when its state has changed. :param data: The data object that is passed from the Observable.