Package com.inertia.promove
Class SerialProtocol.Message
java.lang.Object
com.inertia.promove.SerialProtocol.Message
- Enclosing class:
- SerialProtocol
public class SerialProtocol.Message
extends java.lang.Object
class for parsing and holding serial message data
-
Method Summary
Modifier and Type Method Description java.util.Vector<Command>
getCommands()
Get a Vector of received Commands.java.util.Vector<Config>
getConfigs()
Get a Vector of received Configurations.int
getNodeID()
Get the nodeID the data originated from.java.util.Vector<ProMoveSamples.Sample>
getSamples()
Get a Vector of received Samples.java.lang.String
toString()
-
Method Details
-
getSamples
Get a Vector of received Samples.- Returns:
- Vector with received Samples or empty Vector
-
getCommands
Get a Vector of received Commands.- Returns:
- Vector with received Commands or empty Vector
-
getConfigs
Get a Vector of received Configurations.- Returns:
- Vector with received Configs or empty Vector
-
getNodeID
public int getNodeID()Get the nodeID the data originated from.- Returns:
- the nodeID.
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
- Returns:
- representation of complete message
-