java.lang.Objectrcs.nml.NMLmsg
public abstract class NMLmsg
This is the abstract base class of all messages sent or recieved via NML.
| Field Summary | |
|---|---|
protected long |
size
not used in Java |
int |
type
Unique Identifier for the type of message |
| Constructor Summary | |
|---|---|
protected |
NMLmsg()
|
|
NMLmsg(int _type)
This constructor is to be used by derived types. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
update(NMLFormatConverter nml_fc)
This function should be overloaded to provide a function that will convert this message to a nuetral format that can be used, by many different types of hosts. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int type
protected long size
| Constructor Detail |
|---|
protected NMLmsg()
public NMLmsg(int _type)
class MY_MSG extends NMLmsg
{
int i;
double d;
public MY_MSG()
{
super(1001);
}
}
_type - Unique Identifier for the type of message| Method Detail |
|---|
public void update(NMLFormatConverter nml_fc)
nml_fc - NMLFormatConverter that provides functions for updating
all of the basic data types.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException