.. java:import:: ch.epfl.leb.sass.logging Message .. java:import:: ch.epfl.leb.sass.logging MessageType .. java:import:: com.google.gson Gson .. java:import:: com.google.gson GsonBuilder .. java:import:: com.google.gson JsonElement .. java:import:: com.google.gson JsonObject .. java:import:: com.google.gson JsonPrimitive .. java:import:: com.google.gson JsonSerializationContext .. java:import:: com.google.gson JsonSerializer .. java:import:: java.lang.reflect Type LaserPowerChange ================ .. java:package:: ch.epfl.leb.sass.logging.internal :noindex: .. java:type:: public class LaserPowerChange implements Message A message containing information about a fluorophore state transition. :author: Kyle M. Douglass Fields ------ POWER ^^^^^ .. java:field:: public final double POWER :outertype: LaserPowerChange TYPE ^^^^ .. java:field:: public final MessageType TYPE :outertype: LaserPowerChange Constructors ------------ LaserPowerChange ^^^^^^^^^^^^^^^^ .. java:constructor:: public LaserPowerChange(double power) :outertype: LaserPowerChange Methods ------- getType ^^^^^^^ .. java:method:: public MessageType getType() :outertype: LaserPowerChange An identifier that indicates where this message originated from. :return: The message type. toJson ^^^^^^ .. java:method:: @Override public JsonElement toJson() :outertype: LaserPowerChange Returns the the message as a JSON string. :return: The properties of the fluorophore as a JSON string.