Class SimulationMessage

java.lang.Object
ffx.ui.commands.SimulationMessage
All Implemented Interfaces:
Serializable

public class SimulationMessage extends Object implements Serializable
The SimulationMessage class is used to pass simple messages between an FFXServer and its FFXClient(s).
Author:
Michael J. Schnieders
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Constant CLOSING=2
    static int
    Constant OK=3
    static int
    Constant SYSTEM=0
    static int
    Constant UPDATE=1
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for SimulationMessage.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Getter for the field message.
    int
    Getter for the field step.
    double
    Getter for the field time.
    int
    Getter for the field type.
    void
    print
    void
    setMessage(int m)
    Setter for the field message.
    void
    setStep(int s)
    Setter for the field step.
    void
    setTime(double t)
    Setter for the field time.
    void
    setType(int t)
    Setter for the field type.
    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • SYSTEM

      public static int SYSTEM
      Constant SYSTEM=0
    • UPDATE

      public static int UPDATE
      Constant UPDATE=1
    • CLOSING

      public static int CLOSING
      Constant CLOSING=2
    • OK

      public static int OK
      Constant OK=3
  • Constructor Details

    • SimulationMessage

      public SimulationMessage(int m)
      Constructor for SimulationMessage.
      Parameters:
      m - a int.
  • Method Details

    • getMessage

      public int getMessage()
      Getter for the field message.
      Returns:
      a int.
    • setMessage

      public void setMessage(int m)
      Setter for the field message.
      Parameters:
      m - a int.
    • getStep

      public int getStep()
      Getter for the field step.
      Returns:
      a int.
    • setStep

      public void setStep(int s)
      Setter for the field step.
      Parameters:
      s - a int.
    • getTime

      public double getTime()
      Getter for the field time.
      Returns:
      a double.
    • setTime

      public void setTime(double t)
      Setter for the field time.
      Parameters:
      t - a double.
    • getType

      public int getType()
      Getter for the field type.
      Returns:
      a int.
    • setType

      public void setType(int t)
      Setter for the field type.
      Parameters:
      t - a int.
    • print

      public void print()
      print
    • toString

      public String toString()
      toString
      Overrides:
      toString in class Object
      Returns:
      a String object.