.. java:import:: ch.epfl.leb.sass.simulator Simulator .. 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:: java.nio ByteBuffer RemoteSimulationServiceHandler ============================== .. java:package:: ch.epfl.leb.sass.server :noindex: .. java:type:: public class RemoteSimulationServiceHandler implements RemoteSimulationService.Iface Implements the remote simulation service functions. :author: Kyle M. Douglass Constructors ------------ RemoteSimulationServiceHandler ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:constructor:: public RemoteSimulationServiceHandler(Simulator simulator) :outertype: RemoteSimulationServiceHandler Methods ------- getNextImage ^^^^^^^^^^^^ .. java:method:: @Override public ByteBuffer getNextImage() throws ImageGenerationException :outertype: RemoteSimulationServiceHandler Advances the simulator by one time step and returns the image. :throws ch.epfl.leb.sass.server.ImageGenerationException: :return: A buffer containing the TIFF-encoded byte string of the simulator's next image. getServerStatus ^^^^^^^^^^^^^^^ .. java:method:: @Override public String getServerStatus() :outertype: RemoteSimulationServiceHandler This method is used to determine whether the server is running. :return: Basic information concerning the status of the server. getSimulationState ^^^^^^^^^^^^^^^^^^ .. java:method:: @Override public String getSimulationState() :outertype: RemoteSimulationServiceHandler Collects information about the simulation's current state and returns it. :return: JSON string containing the current state of the simulation. setActivationLaserPower ^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override public void setActivationLaserPower(double power) :outertype: RemoteSimulationServiceHandler Sets the activation laser power in the simulation. :param power: The power of the laser.