public abstract class NMLmsg
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected long |
size
not used in Java
|
int |
type
Unique Identifier for the type of message
|
| Modifier | Constructor and Description |
|---|---|
protected |
NMLmsg() |
|
NMLmsg(int _type)
This constructor is to be used by derived types.
|
| Modifier and Type | Method and Description |
|---|---|
NMLmsg |
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.
|
public int type
protected long size
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 messagepublic void update(NMLFormatConverter nml_fc)
nml_fc - NMLFormatConverter that provides functions for updating
all of the basic data types.public NMLmsg clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException