|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mil.navy.nps.dis.PduElement mil.navy.nps.dis.EntityType
Record providing full identification of entity type.
PduElement
Field Summary | |
protected UnsignedByte |
category
This field shall specify the main category that describes the entity. |
protected UnsignedShort |
country
This field shall specify the country to which the design of the entity is attributed. |
protected UnsignedByte |
domain
This field shall specify the domain in which the equipment operates (for example, subsurface, surface, land, etc.) except for munition entities. |
protected UnsignedByte |
extra
This field shall specify extra information required to describe a particular entity. |
protected UnsignedByte |
kind
Entity kind: munition, life form, environmental... |
static int |
sizeOf
Constant value--size of an EntityType as written out to the wire. |
protected UnsignedByte |
specific
This field shall specify specific information about an entity based upon the subcategory field to which it belongs. |
protected UnsignedByte |
subCategory
This field shall specify a particular subcategory to which the entity belongs based on the category and the country. |
Constructor Summary | |
EntityType()
Default constructor--fills with zeros for all values. |
Method Summary | |
java.lang.Object |
clone()
Makes deep copies of all the instance variables, so we don't have two objects pointing to the same data. |
void |
deSerialize(java.io.DataInputStream inputStream)
Deserialize our data from the input stream. |
UnsignedByte |
getCategory()
|
UnsignedShort |
getCountry()
|
UnsignedByte |
getDomain()
|
UnsignedByte |
getExtra()
|
UnsignedByte |
getKind()
|
UnsignedByte |
getSpecific()
|
UnsignedByte |
getSubCategory()
|
int |
length()
Returns the length of the object when serialized in a stream. |
void |
printValues(int indentLevel,
java.io.PrintStream printStream)
Prints the generated serialized object for debugging. |
void |
serialize(java.io.DataOutputStream outputStream)
Serialize our data out to the stream. |
void |
setCategory(int pCategory)
|
void |
setCategory(UnsignedByte pCategory)
|
void |
setCountry(int pCountry)
|
void |
setCountry(UnsignedShort pCountry)
|
void |
setDomain(int pDomain)
|
void |
setDomain(UnsignedByte pDomain)
|
void |
setExtra(int pExtra)
|
void |
setExtra(UnsignedByte pExtra)
|
void |
setKind(int pKind)
|
void |
setKind(UnsignedByte pKind)
|
void |
setSpecific(int pSpecific)
|
void |
setSpecific(UnsignedByte pSpecific)
|
void |
setSubCategory(int pSubCategory)
|
void |
setSubCategory(UnsignedByte pSubCategory)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected UnsignedByte kind
protected UnsignedByte domain
protected UnsignedShort country
protected UnsignedByte category
protected UnsignedByte subCategory
protected UnsignedByte specific
protected UnsignedByte extra
public static final int sizeOf
sizeOf = 8 bytes
Constructor Detail |
public EntityType()
Method Detail |
public java.lang.Object clone()
PduElement
clone
in class PduElement
Object
public void serialize(java.io.DataOutputStream outputStream)
PduElement
super.Serialize()
to make sure
the superclasse's data is serialized out. The order
in which instance variables are serialized is significant. They must
be serialized in the same order they appear in the DIS
spec.
Prints out some information during execution if debugging flag is set.
serialize
in interface SerializationInterface
serialize
in class PduElement
outputStream
- the stream to which this object is serializedpublic void deSerialize(java.io.DataInputStream inputStream)
PduElement
super.deSerialize
to make sure
the superclass's data are properly affected. The order
in which instance variables are serialized is significant. They must
be deSerialized in the same order as they have been serialized as specified by the DIS spec.
deSerialize
in interface SerializationInterface
deSerialize
in class PduElement
inputStream
- the stream from which this object is initializedpublic int length()
PduElement
length
in class PduElement
public void printValues(int indentLevel, java.io.PrintStream printStream)
PduElement
printValues
in class PduElement
indentLevel
- number of spaces to indent for visibilitypublic UnsignedByte getKind()
public void setKind(UnsignedByte pKind)
public void setKind(int pKind)
public UnsignedByte getDomain()
public void setDomain(UnsignedByte pDomain)
public void setDomain(int pDomain)
public UnsignedShort getCountry()
public void setCountry(UnsignedShort pCountry)
public void setCountry(int pCountry)
public UnsignedByte getCategory()
public void setCategory(UnsignedByte pCategory)
public void setCategory(int pCategory)
public UnsignedByte getSubCategory()
public void setSubCategory(UnsignedByte pSubCategory)
public void setSubCategory(int pSubCategory)
public UnsignedByte getSpecific()
public void setSpecific(UnsignedByte pSpecific)
public void setSpecific(int pSpecific)
public UnsignedByte getExtra()
public void setExtra(UnsignedByte pExtra)
public void setExtra(int pExtra)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |