RemoteSimulationServiceHandler

public class RemoteSimulationServiceHandler implements RemoteSimulationService.Iface

Implements the remote simulation service functions.

Author:Kyle M. Douglass

Constructors

RemoteSimulationServiceHandler

public RemoteSimulationServiceHandler(Simulator simulator)

Methods

getNextImage

public ByteBuffer getNextImage()

Advances the simulator by one time step and returns the image.

Throws:
Returns:

A buffer containing the TIFF-encoded byte string of the simulator’s next image.

getServerStatus

public String getServerStatus()

This method is used to determine whether the server is running.

Returns:Basic information concerning the status of the server.

getSimulationState

public String getSimulationState()

Collects information about the simulation’s current state and returns it.

Returns:JSON string containing the current state of the simulation.

setActivationLaserPower

public void setActivationLaserPower(double power)

Sets the activation laser power in the simulation.

Parameters:
  • power – The power of the laser.