|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.dis.PduElement
mil.navy.nps.dis.RadioEntityType
Entity Radio Type
PduElement
,
SerializationInterface
,
EntityCoordinate
Field Summary | |
protected UnsignedByte |
category
Fourth field of RadioEntityType This field shall specify the main category that describes the radio entity, and shall be represented by an 8-bit enumeration. |
protected UnsignedShort |
country
Thrid field of RadioEntityType This field shall specify the country to which the design of the radio entity is attributed, and shall be represented by a 16-bit enumeration. |
protected UnsignedByte |
domain
Second field of RadioEntityType This field shall specify the domain in which the radio entity operates, and shall be represented by an 8-bit enumeration. |
protected UnsignedByte |
entityKind
First field of RadioEntityType This field shall identify the kind of entity described by the Radio Entity Type record, and shall be represented by an 8-bit enumeration. |
protected UnsignedShort |
nomenclature
Sixth field of RadioEntityType This field shall specify the nomenclature for a particular communications device. |
protected UnsignedByte |
nomenclatureVersion
Fifth field of RadioEntityType This field shall specify the speciŽc modification or individual unit type for a series and/or family of equipment. |
int |
sizeOf
Constant value--size of a RadioEntityType record when written out; here : sizeOf = 64 bytes . |
Constructor Summary | |
RadioEntityType()
Constructs an new RadioEntityType Object, centered. |
|
RadioEntityType(UnsignedByte pEntityKind,
UnsignedByte pDomain,
UnsignedShort pCountry,
UnsignedByte pCategory,
UnsignedByte pNomenclatureVersion,
UnsignedShort pNomenclature)
Constructs a new RadioEntityType Object whose coordinate values are passed in parameters. |
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 pInputStream)
Reads an object in from DIS format. |
UnsignedByte |
getCategory()
Gets the Category |
UnsignedShort |
getCountry()
Gets the Country |
UnsignedByte |
getDomain()
Gets the Domain |
UnsignedByte |
getEntityKind()
Gets the EntityKind |
UnsignedShort |
getNomenclature()
Gets the Nomenclature |
UnsignedByte |
getNomenclatureVersion()
Gets the NomenclatureVersion |
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)
Writes an object out in DIS format. |
void |
setCategory(UnsignedByte pCategory)
Sets the Category |
void |
setCountry(UnsignedShort pCountry)
Sets the Country |
void |
setDomain(UnsignedByte pDomain)
Sets the Domain |
void |
setEntityKind(UnsignedByte pEntityKind)
Sets the EntityKind |
void |
setNomenclature(UnsignedShort pNomenclature)
Sets the Nomenclature |
void |
setNomenclatureVersion(UnsignedByte pNomenclatureVersion)
Sets the NomenclatureVersion |
java.lang.String |
toString()
String toString Used for debuging |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected UnsignedByte entityKind
protected UnsignedByte domain
protected UnsignedShort country
protected UnsignedByte category
protected UnsignedByte nomenclatureVersion
protected UnsignedShort nomenclature
public final int sizeOf
sizeOf = 64 bytes
.
Constructor Detail |
public RadioEntityType()
public RadioEntityType(UnsignedByte pEntityKind, UnsignedByte pDomain, UnsignedShort pCountry, UnsignedByte pCategory, UnsignedByte pNomenclatureVersion, UnsignedShort pNomenclature)
pEntityKind
- the firstpDomain
- the secondpCountry
- the thirdpCategory
- the fourthpNomenclatureVersion
- the fifthpNomenclature
- the sixthMethod Detail |
public java.lang.Object clone()
PduElement
clone
in class PduElement
Object
public void serialize(java.io.DataOutputStream outputStream)
SerializationInterface
serialize
in interface SerializationInterface
serialize
in class PduElement
outputStream
- the stream to which this object is serialized
java.lang.RuntimeException
- when IO error occurs.public void deSerialize(java.io.DataInputStream pInputStream)
SerializationInterface
deSerialize
in interface SerializationInterface
deSerialize
in class PduElement
pInputStream
- the stream from which this object is initialized
java.lang.RuntimeException
- when IO error occurs.public 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 getEntityKind()
public void setEntityKind(UnsignedByte pEntityKind)
pEntityKind
- a EntityKindpublic UnsignedByte getDomain()
public void setDomain(UnsignedByte pDomain)
pDomain
- a Domainpublic UnsignedShort getCountry()
public void setCountry(UnsignedShort pCountry)
pCountry
- a Countrypublic UnsignedByte getCategory()
public void setCategory(UnsignedByte pCategory)
pCategory
- a Categorypublic UnsignedByte getNomenclatureVersion()
public void setNomenclatureVersion(UnsignedByte pNomenclatureVersion)
pNomenclatureVersion
- a NomenclatureVersionpublic UnsignedShort getNomenclature()
public void setNomenclature(UnsignedShort pNomenclature)
pNomenclature
- a Nomenclaturepublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |