Package jmri.jmrix

Class NetMessage

java.lang.Object
jmri.jmrix.NetMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Mx1Message

public abstract class NetMessage
extends Object
implements Serializable
Represents a single general command or response.

Content is represented with ints to avoid the problems with sign-extension that bytes have, and because a Java char is actually a variable number of bytes in Unicode.

Both a set of indexed contents, an opcode, and a length field are available. Different implementations will map the opcode and length into the contents in different ways. They may not appear at all...

See Also:
Serialized Form