Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.dis.PduElement | +--mil.navy.nps.dis.ProtocolDataUnit | +--mil.navy.nps.dis.EntityStatePdu
This is pretty simple stuff. You can really go to sleep writing it. It screams out for automation and an algorithm to do all this automatically. Can you say dial-a-protocol?
Field Summary | |
EntityType | alternativeEntityType
Alternate Entity Type - This field shall identify the entity type to be displayed by members of forces other than that of the issuing entity. |
java.util.Vector | articulationParameters
The number of articulation parameters and the Articulation Paramater record are being wrapped in Vectors. |
mil.navy.nps.util.UnsignedInt | capabilities
A collection of boolean fields which describe the capabilities of the Entity. |
mil.navy.nps.util.UnsignedByte | characterSet
This field represents the Character set used in representing the Entity Marking Record. |
mil.navy.nps.util.UnsignedByte | deadReckoningAlgorithm
Dead Reckoning Algorithm - This field shall specify the dead reckoning algorithm in use by the issuing entity. |
byte[] | deadReckoningParameters
Other Parameters - This field shall specify other required dead reckoning parameters to be determined. |
static boolean | DEBUG
Debugging flag; when set true, turns on verbose diagnostic, statements that prints in the java console. |
AngularVelocity | entityAngularVelocity
Entity Angular Velocity - This field shall specify an entity's angular velocity. |
mil.navy.nps.util.UnsignedInt | entityAppearance
Entity Appearance - This field shall specify the dynamic changes to the entity's appearance attributes. |
EntityID | entityID
Entity Identification - This field shall identify the entity issuing the PDU. |
LinearAcceleration | entityLinearAcceleration
Entity Linear Acceleration - This field shall specify an entity's linear acceleration. |
LinearVelocity | entityLinearVelocity
Entity Linear Velocity - This field shall specify an entity's linear velocity. |
WorldCoordinate | entityLocation
Entity Location - This field shall specify an entity's physical location in the simulated world. |
EulerAngle | entityOrientation
Entity Orientation - This field shall specify an entity's orientation. |
EntityType | entityType
Entity Type - This field shall identify the entity type to be displayed by members of the same force as the issuing entity. |
static EntityStatePdu | exemplar
An "examplar" object, which is filled out to the state that is needed most of the time. |
mil.navy.nps.util.UnsignedByte | forceID
Force Identification - This field shall identify the force to which the issuing entity belongs. |
java.lang.String | marking
This is a String used to designate the Entity Marking. |
static int | sizeOf
Constant value--size of an Entity State PDU without headder. |
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit | |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, sizeOf, timestamp |
Constructor Summary | |
EntityStatePdu()
Default constructor--fills with zeros for all values. |
Method Summary | |
void | addArticulationParameter(ArticulationParameter pParameter)
Inserts a new articulation parameter in the list. |
mil.navy.nps.util.UnsignedByte | articulationParameterCount()
Returns the number of articulation parameter in this Entity State PDU. |
java.lang.Object | clone()
|
void | deSerialize(java.io.DataInputStream dataInputStream)
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeCategory()
|
mil.navy.nps.util.UnsignedShort | getAlternativeEntityTypeCountry()
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeDomain()
|
EntityType | getAlternativeEntityType()
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeExtra()
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeKind()
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeSpecific()
|
mil.navy.nps.util.UnsignedByte | getAlternativeEntityTypeSubcategory()
|
ArticulationParameter | getArticulationParameterAt(int pIdx)
Returns the articulation parameter pointed at the given index. |
mil.navy.nps.util.UnsignedInt | getCapabilities()
|
mil.navy.nps.util.UnsignedByte | getCharacterSet()
|
mil.navy.nps.util.UnsignedByte | getDeadReckoningAlgorithm()
|
byte[] | getDeadReckoningParameters()
|
AngularVelocity | getEntityAngularVelocity()
|
float | getEntityAngularVelocityX()
|
float | getEntityAngularVelocityY()
|
float | getEntityAngularVelocityZ()
|
mil.navy.nps.util.UnsignedInt | getEntityAppearance()
|
EntityID | getEntityID()
|
LinearAcceleration | getEntityLinearAcceleration()
|
float | getEntityLinearAccelerationX()
|
float | getEntityLinearAccelerationY()
|
float | getEntityLinearAccelerationZ()
|
LinearVelocity | getEntityLinearVelocity()
|
float | getEntityLinearVelocityX()
|
float | getEntityLinearVelocityY()
|
float | getEntityLinearVelocityZ()
|
WorldCoordinate | getEntityLocation()
|
double | getEntityLocationX()
|
double | getEntityLocationY()
|
double | getEntityLocationZ()
|
EulerAngle | getEntityOrientation()
|
float | getEntityOrientationPhi()
|
float | getEntityOrientationPsi()
|
float | getEntityOrientationTheta()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeCategory()
|
mil.navy.nps.util.UnsignedShort | getEntityTypeCountry()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeDomain()
|
EntityType | getEntityType()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeExtra()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeKind()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeSpecific()
|
mil.navy.nps.util.UnsignedByte | getEntityTypeSubcategory()
|
static EntityStatePdu | getExemplar()
|
mil.navy.nps.util.UnsignedByte | getForceID()
|
java.lang.String | getMarking()
|
int | length()
|
java.lang.String | PDUName()
|
void | printValues(int indentLevel,
java.io.PrintStream printStream)
|
void | serialize(java.io.DataOutputStream outputStream)
|
void | setAlternativeEntityCountry(int pEntityCountry)
|
void | setAlternativeEntityDomain(int pEntityDomain)
|
void | setAlternativeEntityTypeCategory(mil.navy.nps.util.UnsignedByte pEntityCategory)
|
void | setAlternativeEntityTypeCategory(int pEntityCategory)
|
void | setAlternativeEntityTypeCountry(mil.navy.nps.util.UnsignedShort pEntityCountry)
|
void | setAlternativeEntityTypeDomain(mil.navy.nps.util.UnsignedByte pEntityDomain)
|
void | setAlternativeEntityType(EntityType pNewAltEntity)
|
void | setAlternativeEntityTypeExtra(mil.navy.nps.util.UnsignedByte pEntityExtra)
|
void | setAlternativeEntityTypeExtra(int pEntityExtra)
|
void | setAlternativeEntityTypeKind(mil.navy.nps.util.UnsignedByte pEntityKind)
|
void | setAlternativeEntityTypeKind(int pEntityKind)
|
void | setAlternativeEntityTypeSpecific(mil.navy.nps.util.UnsignedByte pEntitySpecific)
|
void | setAlternativeEntityTypeSpecific(int pEntitySpecific)
|
void | setAlternativeEntityTypeSubcategory(mil.navy.nps.util.UnsignedByte pEntitySubcategory)
|
void | setAlternativeEntityTypeSubcategory(int pEntitySubcategory)
|
void | setCapabilities(mil.navy.nps.util.UnsignedInt pCapabilities)
|
void | setCapabilities(int pCapabilities)
|
void | setCharacterSet(mil.navy.nps.util.UnsignedByte pCharacterSet)
|
void | setCharacterSet(int pCharacterSet)
|
void | setDeadReckoningAlgorithm(mil.navy.nps.util.UnsignedByte pDeadReckoningAlgorithm)
|
void | setDeadReckoningAlgorithm(int pDeadReckoningAlgorithm)
|
void | setDeadReckoningParameters(byte[] pDeadReckoningParameters)
|
void | setEntityAngularVelocity(AngularVelocity pAngV)
|
void | setEntityAngularVelocity(float pX,
float pY,
float pZ)
|
void | setEntityAngularVelocityX(float pEntityAngularVelocity)
|
void | setEntityAngularVelocityY(float pEntityAngularVelocity)
|
void | setEntityAngularVelocityZ(float pEntityAngularVelocity)
|
void | setEntityAppearance(mil.navy.nps.util.UnsignedInt pEntityAppearance)
|
void | setEntityAppearance(int pEntityAppearance)
|
void | setEntityDomain(int pEntityDomain)
|
void | setEntityID(EntityID pEntityID)
|
void | setEntityID(short pSiteID,
short pApplicationID,
short pEntityID)
|
void | setEntityLinearAcceleration(LinearAcceleration pAcceleration)
|
void | setEntityLinearAcceleration(float pX,
float pY,
float pZ)
|
void | setEntityLinearAccelerationX(float pEntityAcceleration)
|
void | setEntityLinearAccelerationY(float pEntityAcceleration)
|
void | setEntityLinearAccelerationZ(float pEntityAcceleration)
|
void | setEntityLinearVelocity(LinearVelocity pVelocity)
|
void | setEntityLinearVelocityX(float pVelocityX)
|
void | setEntityLinearVelocityY(float pVelocityY)
|
void | setEntityLinearVelocityZ(float pVelocityZ)
|
void | setEntityLocation(WorldCoordinate pLocation)
|
void | setEntityLocationX(double pLocationX)
|
void | setEntityLocationY(double pLocationY)
|
void | setEntityLocationZ(double pLocationZ)
|
void | setEntityOrientation(EulerAngle pNewOrientation)
|
void | setEntityOrientationPhi(float pPhi)
|
void | setEntityOrientationPsi(float pPsi)
|
void | setEntityOrientationTheta(float pTheta)
|
void | setEntityTypeCategory(mil.navy.nps.util.UnsignedByte pEntityCategory)
|
void | setEntityTypeCategory(int pEntityCategory)
|
void | setEntityTypeCountry(mil.navy.nps.util.UnsignedShort pEntityCountry)
|
void | setEntityTypeCountry(int pEntityCountry)
|
void | setEntityTypeDomain(mil.navy.nps.util.UnsignedByte pEntityDomain)
|
void | setEntityType(EntityType pEntityType)
|
void | setEntityTypeExtra(mil.navy.nps.util.UnsignedByte pEntityExtra)
|
void | setEntityTypeExtra(int pEntityExtra)
|
void | setEntityTypeKind(mil.navy.nps.util.UnsignedByte pEntityKind)
|
void | setEntityTypeKind(int pEntityKind)
|
void | setEntityTypeSpecific(mil.navy.nps.util.UnsignedByte pEntitySpecific)
|
void | setEntityTypeSpecific(int pEntitySpecific)
|
void | setEntityTypeSubcategory(mil.navy.nps.util.UnsignedByte pEntitySubcategory)
|
void | setEntityTypeSubcategory(int pEntitySubcategory)
|
static void | setExemplar(EntityStatePdu newExemplar)
|
void | setForceID(mil.navy.nps.util.UnsignedByte pForceID)
|
void | setForceID(int pForceID)
|
void | setMarking(java.lang.String pMarking)
|
Methods inherited from class mil.navy.nps.dis.ProtocolDataUnit | |
Methods inherited from class mil.navy.nps.dis.PduElement | |
clone, deSerialize, length, printValues, serialize |
Methods inherited from class java.lang.Object | |
Field Detail |
public static final boolean DEBUG
protected EntityID entityID
protected mil.navy.nps.util.UnsignedByte forceID
protected EntityType entityType
protected EntityType alternativeEntityType
protected LinearVelocity entityLinearVelocity
protected WorldCoordinate entityLocation
protected EulerAngle entityOrientation
protected mil.navy.nps.util.UnsignedInt entityAppearance
protected mil.navy.nps.util.UnsignedByte deadReckoningAlgorithm
protected byte[] deadReckoningParameters
protected LinearAcceleration entityLinearAcceleration
protected AngularVelocity entityAngularVelocity
protected mil.navy.nps.util.UnsignedByte characterSet
protected java.lang.String marking
protected mil.navy.nps.util.UnsignedInt capabilities
protected java.util.Vector articulationParameters
public static final int sizeOf
sizeOf = 132 bytes
protected static EntityStatePdu exemplar
Constructor Detail |
public EntityStatePdu()
Method Detail |
public void serialize(java.io.DataOutputStream outputStream)
public void deSerialize(java.io.DataInputStream dataInputStream)
public java.lang.Object clone()
public int length()
public java.lang.String PDUName()
public void printValues(int indentLevel, java.io.PrintStream printStream)
public static EntityStatePdu getExemplar()
public static void setExemplar(EntityStatePdu newExemplar)
public EntityID getEntityID()
public void setEntityID(EntityID pEntityID)
public void setEntityID(short pSiteID, short pApplicationID, short pEntityID)
public mil.navy.nps.util.UnsignedByte getForceID()
public void setForceID(mil.navy.nps.util.UnsignedByte pForceID)
public void setForceID(int pForceID)
public mil.navy.nps.util.UnsignedByte articulationParameterCount()
public EntityType getEntityType()
public void setEntityType(EntityType pEntityType)
public mil.navy.nps.util.UnsignedByte getEntityTypeKind()
public void setEntityTypeKind(mil.navy.nps.util.UnsignedByte pEntityKind)
public void setEntityTypeKind(int pEntityKind)
public mil.navy.nps.util.UnsignedByte getEntityTypeDomain()
public void setEntityTypeDomain(mil.navy.nps.util.UnsignedByte pEntityDomain)
public void setEntityDomain(int pEntityDomain)
public mil.navy.nps.util.UnsignedShort getEntityTypeCountry()
public void setEntityTypeCountry(mil.navy.nps.util.UnsignedShort pEntityCountry)
public void setEntityTypeCountry(int pEntityCountry)
public mil.navy.nps.util.UnsignedByte getEntityTypeCategory()
public void setEntityTypeCategory(mil.navy.nps.util.UnsignedByte pEntityCategory)
public void setEntityTypeCategory(int pEntityCategory)
public mil.navy.nps.util.UnsignedByte getEntityTypeSubcategory()
public void setEntityTypeSubcategory(mil.navy.nps.util.UnsignedByte pEntitySubcategory)
public void setEntityTypeSubcategory(int pEntitySubcategory)
public mil.navy.nps.util.UnsignedByte getEntityTypeSpecific()
public void setEntityTypeSpecific(mil.navy.nps.util.UnsignedByte pEntitySpecific)
public void setEntityTypeSpecific(int pEntitySpecific)
public mil.navy.nps.util.UnsignedByte getEntityTypeExtra()
public void setEntityTypeExtra(mil.navy.nps.util.UnsignedByte pEntityExtra)
public void setEntityTypeExtra(int pEntityExtra)
public EntityType getAlternativeEntityType()
public void setAlternativeEntityType(EntityType pNewAltEntity)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeKind()
public void setAlternativeEntityTypeKind(mil.navy.nps.util.UnsignedByte pEntityKind)
public void setAlternativeEntityTypeKind(int pEntityKind)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeDomain()
public void setAlternativeEntityTypeDomain(mil.navy.nps.util.UnsignedByte pEntityDomain)
public void setAlternativeEntityDomain(int pEntityDomain)
public mil.navy.nps.util.UnsignedShort getAlternativeEntityTypeCountry()
public void setAlternativeEntityTypeCountry(mil.navy.nps.util.UnsignedShort pEntityCountry)
public void setAlternativeEntityCountry(int pEntityCountry)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeCategory()
public void setAlternativeEntityTypeCategory(mil.navy.nps.util.UnsignedByte pEntityCategory)
public void setAlternativeEntityTypeCategory(int pEntityCategory)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeSubcategory()
public void setAlternativeEntityTypeSubcategory(mil.navy.nps.util.UnsignedByte pEntitySubcategory)
public void setAlternativeEntityTypeSubcategory(int pEntitySubcategory)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeSpecific()
public void setAlternativeEntityTypeSpecific(mil.navy.nps.util.UnsignedByte pEntitySpecific)
public void setAlternativeEntityTypeSpecific(int pEntitySpecific)
public mil.navy.nps.util.UnsignedByte getAlternativeEntityTypeExtra()
public void setAlternativeEntityTypeExtra(mil.navy.nps.util.UnsignedByte pEntityExtra)
public void setAlternativeEntityTypeExtra(int pEntityExtra)
public LinearVelocity getEntityLinearVelocity()
public void setEntityLinearVelocity(LinearVelocity pVelocity)
public float getEntityLinearVelocityX()
public void setEntityLinearVelocityX(float pVelocityX)
public float getEntityLinearVelocityY()
public void setEntityLinearVelocityY(float pVelocityY)
public float getEntityLinearVelocityZ()
public void setEntityLinearVelocityZ(float pVelocityZ)
public WorldCoordinate getEntityLocation()
public void setEntityLocation(WorldCoordinate pLocation)
public double getEntityLocationX()
public void setEntityLocationX(double pLocationX)
public double getEntityLocationY()
public void setEntityLocationY(double pLocationY)
public double getEntityLocationZ()
public void setEntityLocationZ(double pLocationZ)
public EulerAngle getEntityOrientation()
public void setEntityOrientation(EulerAngle pNewOrientation)
public float getEntityOrientationPsi()
public void setEntityOrientationPsi(float pPsi)
public float getEntityOrientationTheta()
public void setEntityOrientationTheta(float pTheta)
public float getEntityOrientationPhi()
public void setEntityOrientationPhi(float pPhi)
public mil.navy.nps.util.UnsignedInt getEntityAppearance()
public void setEntityAppearance(mil.navy.nps.util.UnsignedInt pEntityAppearance)
public void setEntityAppearance(int pEntityAppearance)
public mil.navy.nps.util.UnsignedByte getDeadReckoningAlgorithm()
public void setDeadReckoningAlgorithm(mil.navy.nps.util.UnsignedByte pDeadReckoningAlgorithm)
public void setDeadReckoningAlgorithm(int pDeadReckoningAlgorithm)
public byte[] getDeadReckoningParameters()
public void setDeadReckoningParameters(byte[] pDeadReckoningParameters)
public LinearAcceleration getEntityLinearAcceleration()
public void setEntityLinearAcceleration(LinearAcceleration pAcceleration)
public void setEntityLinearAcceleration(float pX, float pY, float pZ)
public float getEntityLinearAccelerationX()
public void setEntityLinearAccelerationX(float pEntityAcceleration)
public float getEntityLinearAccelerationY()
public void setEntityLinearAccelerationY(float pEntityAcceleration)
public float getEntityLinearAccelerationZ()
public void setEntityLinearAccelerationZ(float pEntityAcceleration)
public AngularVelocity getEntityAngularVelocity()
public void setEntityAngularVelocity(AngularVelocity pAngV)
public void setEntityAngularVelocity(float pX, float pY, float pZ)
public float getEntityAngularVelocityX()
public void setEntityAngularVelocityX(float pEntityAngularVelocity)
public float getEntityAngularVelocityY()
public void setEntityAngularVelocityY(float pEntityAngularVelocity)
public float getEntityAngularVelocityZ()
public void setEntityAngularVelocityZ(float pEntityAngularVelocity)
public mil.navy.nps.util.UnsignedByte getCharacterSet()
public void setCharacterSet(mil.navy.nps.util.UnsignedByte pCharacterSet)
public void setCharacterSet(int pCharacterSet)
public java.lang.String getMarking()
public void setMarking(java.lang.String pMarking)
public mil.navy.nps.util.UnsignedInt getCapabilities()
public void setCapabilities(mil.navy.nps.util.UnsignedInt pCapabilities)
public void setCapabilities(int pCapabilities)
public ArticulationParameter getArticulationParameterAt(int pIdx)
pIdx
- the index of the articulation parameter we want to get.public void addArticulationParameter(ArticulationParameter pParameter)
pParameter
- the articulation parameter to insert in the list.Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |