Package ffx.ui.commands
Class SimulationMessage
java.lang.Object
ffx.ui.commands.SimulationMessage
- All Implemented Interfaces:
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the fieldmessage
.int
getStep()
Getter for the fieldstep
.double
getTime()
Getter for the fieldtime
.int
getType()
Getter for the fieldtype
.void
print()
printvoid
setMessage
(int m) Setter for the fieldmessage
.void
setStep
(int s) Setter for the fieldstep
.void
setTime
(double t) Setter for the fieldtime
.void
setType
(int t) Setter for the fieldtype
.toString()
toString
-
Field Details
-
SYSTEM
public static int SYSTEMConstantSYSTEM=0
-
UPDATE
public static int UPDATEConstantUPDATE=1
-
CLOSING
public static int CLOSINGConstantCLOSING=2
-
OK
public static int OKConstantOK=3
-
-
Constructor Details
-
SimulationMessage
public SimulationMessage(int m) Constructor for SimulationMessage.- Parameters:
m
- a int.
-
-
Method Details
-
getMessage
public int getMessage()Getter for the fieldmessage
.- Returns:
- a int.
-
setMessage
public void setMessage(int m) Setter for the fieldmessage
.- Parameters:
m
- a int.
-
getStep
public int getStep()Getter for the fieldstep
.- Returns:
- a int.
-
setStep
public void setStep(int s) Setter for the fieldstep
.- Parameters:
s
- a int.
-
getTime
public double getTime()Getter for the fieldtime
.- Returns:
- a double.
-
setTime
public void setTime(double t) Setter for the fieldtime
.- Parameters:
t
- a double.
-
getType
public int getType()Getter for the fieldtype
.- Returns:
- a int.
-
setType
public void setType(int t) Setter for the fieldtype
.- Parameters:
t
- a int.
-
print
public void print()print -
toString
toString
-