public class FastEntityStatePdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
altCategory
category of entity
|
protected short |
altCountry
country to which the design of the entity is attributed
|
protected byte |
altDomain
Domain of entity (air, surface, subsurface, space, etc)
|
protected byte |
altEntityKind
Kind of entity
|
protected byte |
altExtra |
protected byte |
altSpecific
specific info based on subcategory field
|
protected byte |
altSubcategory
subcategory of entity
|
protected short |
application
The application ID
|
protected short |
capabilities
a series of bit flags
|
protected byte |
category
category of entity
|
protected short |
country
country to which the design of the entity is attributed
|
protected byte |
deadReckoningAlgorithm
enumeration of what dead reckoning algorighm to use
|
protected byte |
domain
Domain of entity (air, surface, subsurface, space, etc)
|
protected short |
entity
the entity ID
|
protected int |
entityAppearance
a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc.
|
protected byte |
entityKind
Kind of entity
|
protected byte |
extra |
protected byte |
forceId
what force this entity is affiliated with, eg red, blue, neutral, etc
|
protected byte[] |
marking
characters that can be used for debugging, or to draw unique strings on the side of entities in the world
|
protected byte |
numberOfVariableParameters
How many variable (nee articulation) parameters are in the variable length list
|
protected byte[] |
otherParameters
other parameters to use in the dead reckoning algorithm
|
protected float |
phi |
protected float |
psi |
protected short |
site
The site ID
|
protected byte |
specific
specific info based on subcategory field
|
protected byte |
subcategory
subcategory of entity
|
protected float |
theta |
protected java.util.List<VariableParameter> |
variableParameters
variable length list of variable parameters.
|
protected float |
xAcceleration
X value
|
protected float |
xAngularVelocity
X value
|
protected double |
xLocation
X value
|
protected float |
xVelocity
X velo
|
protected float |
yAcceleration
y Value
|
protected float |
yAngularVelocity
y Value
|
protected double |
yLocation
y Value
|
protected float |
yVelocity
y Value
|
protected float |
zAcceleration
Z value
|
protected float |
zAngularVelocity
Z value
|
protected double |
zLocation
Z value
|
protected float |
zVelocity
Z value
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
FastEntityStatePdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
byte |
getAltCategory()
Getter for
altCategory |
short |
getAltCountry()
Getter for
altCountry |
byte |
getAltDomain()
Getter for
altDomain |
byte |
getAltEntityKind()
Getter for
altEntityKind |
byte |
getAltExtra()
Getter for
altExtra |
byte |
getAltSpecific()
Getter for
altSpecific |
byte |
getAltSubcategory()
Getter for
altSubcategory |
short |
getApplication()
Getter for
application |
short |
getCapabilities()
Getter for
capabilities |
byte |
getCategory()
Getter for
category |
short |
getCountry()
Getter for
country |
byte |
getDeadReckoningAlgorithm()
Getter for
deadReckoningAlgorithm |
byte |
getDomain()
Getter for
domain |
short |
getEntity()
Getter for
entity |
int |
getEntityAppearance()
Getter for
entityAppearance |
byte |
getEntityKind()
Getter for
entityKind |
byte |
getExtra()
Getter for
extra |
byte |
getForceId()
Getter for
forceId |
byte[] |
getMarking()
Getter for
marking |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte[] |
getOtherParameters()
Getter for
otherParameters |
float |
getPhi()
Getter for
phi |
float |
getPsi()
Getter for
psi |
short |
getSite()
Getter for
site |
byte |
getSpecific()
Getter for
specific |
byte |
getSubcategory()
Getter for
subcategory |
float |
getTheta()
Getter for
theta |
java.util.List<VariableParameter> |
getVariableParameters()
Getter for
variableParameters |
float |
getXAcceleration()
Getter for
xAcceleration |
float |
getXAngularVelocity()
Getter for
xAngularVelocity |
double |
getXLocation()
Getter for
xLocation |
float |
getXVelocity()
Getter for
xVelocity |
float |
getYAcceleration()
Getter for
yAcceleration |
float |
getYAngularVelocity()
Getter for
yAngularVelocity |
double |
getYLocation()
Getter for
yLocation |
float |
getYVelocity()
Getter for
yVelocity |
float |
getZAcceleration()
Getter for
zAcceleration |
float |
getZAngularVelocity()
Getter for
zAngularVelocity |
double |
getZLocation()
Getter for
zLocation |
float |
getZVelocity()
Getter for
zVelocity |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
FastEntityStatePdu |
setAltCategory(byte pAltCategory)
Setter for
altCategory |
FastEntityStatePdu |
setAltCountry(short pAltCountry)
Setter for
altCountry |
FastEntityStatePdu |
setAltDomain(byte pAltDomain)
Setter for
altDomain |
FastEntityStatePdu |
setAltEntityKind(byte pAltEntityKind)
Setter for
altEntityKind |
FastEntityStatePdu |
setAltExtra(byte pAltExtra)
Setter for
altExtra |
FastEntityStatePdu |
setAltSpecific(byte pAltSpecific)
Setter for
altSpecific |
FastEntityStatePdu |
setAltSubcategory(byte pAltSubcategory)
Setter for
altSubcategory |
FastEntityStatePdu |
setApplication(short pApplication)
Setter for
application |
FastEntityStatePdu |
setCapabilities(short pCapabilities)
Setter for
capabilities |
FastEntityStatePdu |
setCategory(byte pCategory)
Setter for
category |
FastEntityStatePdu |
setCountry(short pCountry)
Setter for
country |
FastEntityStatePdu |
setDeadReckoningAlgorithm(byte pDeadReckoningAlgorithm)
Setter for
deadReckoningAlgorithm |
FastEntityStatePdu |
setDomain(byte pDomain)
Setter for
domain |
FastEntityStatePdu |
setEntity(short pEntity)
Setter for
entity |
FastEntityStatePdu |
setEntityAppearance(int pEntityAppearance)
Setter for
entityAppearance |
FastEntityStatePdu |
setEntityKind(byte pEntityKind)
Setter for
entityKind |
FastEntityStatePdu |
setExtra(byte pExtra)
Setter for
extra |
FastEntityStatePdu |
setForceId(byte pForceId)
Setter for
forceId |
FastEntityStatePdu |
setMarking(byte[] pMarking)
Setter for
marking |
FastEntityStatePdu |
setOtherParameters(byte[] pOtherParameters)
Setter for
otherParameters |
FastEntityStatePdu |
setPhi(float pPhi)
Setter for
phi |
FastEntityStatePdu |
setPsi(float pPsi)
Setter for
psi |
FastEntityStatePdu |
setSite(short pSite)
Setter for
site |
FastEntityStatePdu |
setSpecific(byte pSpecific)
Setter for
specific |
FastEntityStatePdu |
setSubcategory(byte pSubcategory)
Setter for
subcategory |
FastEntityStatePdu |
setTheta(float pTheta)
Setter for
theta |
FastEntityStatePdu |
setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
Setter for
variableParameters |
FastEntityStatePdu |
setXAcceleration(float pXAcceleration)
Setter for
xAcceleration |
FastEntityStatePdu |
setXAngularVelocity(float pXAngularVelocity)
Setter for
xAngularVelocity |
FastEntityStatePdu |
setXLocation(double pXLocation)
Setter for
xLocation |
FastEntityStatePdu |
setXVelocity(float pXVelocity)
Setter for
xVelocity |
FastEntityStatePdu |
setYAcceleration(float pYAcceleration)
Setter for
yAcceleration |
FastEntityStatePdu |
setYAngularVelocity(float pYAngularVelocity)
Setter for
yAngularVelocity |
FastEntityStatePdu |
setYLocation(double pYLocation)
Setter for
yLocation |
FastEntityStatePdu |
setYVelocity(float pYVelocity)
Setter for
yVelocity |
FastEntityStatePdu |
setZAcceleration(float pZAcceleration)
Setter for
zAcceleration |
FastEntityStatePdu |
setZAngularVelocity(float pZAngularVelocity)
Setter for
zAngularVelocity |
FastEntityStatePdu |
setZLocation(double pZLocation)
Setter for
zLocation |
FastEntityStatePdu |
setZVelocity(float pZVelocity)
Setter for
zVelocity |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected short site
protected short application
protected short entity
protected byte forceId
protected byte numberOfVariableParameters
protected byte entityKind
protected byte domain
protected short country
protected byte category
protected byte subcategory
protected byte specific
protected byte extra
protected byte altEntityKind
protected byte altDomain
protected short altCountry
protected byte altCategory
protected byte altSubcategory
protected byte altSpecific
protected byte altExtra
protected float xVelocity
protected float yVelocity
protected float zVelocity
protected double xLocation
protected double yLocation
protected double zLocation
protected float psi
protected float theta
protected float phi
protected int entityAppearance
protected byte deadReckoningAlgorithm
protected byte[] otherParameters
protected float xAcceleration
protected float yAcceleration
protected float zAcceleration
protected float xAngularVelocity
protected float yAngularVelocity
protected float zAngularVelocity
protected byte[] marking
protected short capabilities
protected java.util.List<VariableParameter> variableParameters
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public FastEntityStatePdu setSite(short pSite)
site
public short getSite()
site
public FastEntityStatePdu setApplication(short pApplication)
application
public short getApplication()
application
public FastEntityStatePdu setEntity(short pEntity)
entity
public short getEntity()
entity
public FastEntityStatePdu setForceId(byte pForceId)
forceId
public byte getForceId()
forceId
public FastEntityStatePdu setEntityKind(byte pEntityKind)
entityKind
public byte getEntityKind()
entityKind
public FastEntityStatePdu setDomain(byte pDomain)
domain
public byte getDomain()
domain
public FastEntityStatePdu setCountry(short pCountry)
country
public short getCountry()
country
public FastEntityStatePdu setCategory(byte pCategory)
category
public byte getCategory()
category
public FastEntityStatePdu setSubcategory(byte pSubcategory)
subcategory
public byte getSubcategory()
subcategory
public FastEntityStatePdu setSpecific(byte pSpecific)
specific
public byte getSpecific()
specific
public FastEntityStatePdu setExtra(byte pExtra)
extra
public byte getExtra()
extra
public FastEntityStatePdu setAltEntityKind(byte pAltEntityKind)
altEntityKind
public byte getAltEntityKind()
altEntityKind
public FastEntityStatePdu setAltDomain(byte pAltDomain)
altDomain
public byte getAltDomain()
altDomain
public FastEntityStatePdu setAltCountry(short pAltCountry)
altCountry
public short getAltCountry()
altCountry
public FastEntityStatePdu setAltCategory(byte pAltCategory)
altCategory
public byte getAltCategory()
altCategory
public FastEntityStatePdu setAltSubcategory(byte pAltSubcategory)
altSubcategory
public byte getAltSubcategory()
altSubcategory
public FastEntityStatePdu setAltSpecific(byte pAltSpecific)
altSpecific
public byte getAltSpecific()
altSpecific
public FastEntityStatePdu setAltExtra(byte pAltExtra)
altExtra
public byte getAltExtra()
altExtra
public FastEntityStatePdu setXVelocity(float pXVelocity)
xVelocity
public float getXVelocity()
xVelocity
public FastEntityStatePdu setYVelocity(float pYVelocity)
yVelocity
public float getYVelocity()
yVelocity
public FastEntityStatePdu setZVelocity(float pZVelocity)
zVelocity
public float getZVelocity()
zVelocity
public FastEntityStatePdu setXLocation(double pXLocation)
xLocation
public double getXLocation()
xLocation
public FastEntityStatePdu setYLocation(double pYLocation)
yLocation
public double getYLocation()
yLocation
public FastEntityStatePdu setZLocation(double pZLocation)
zLocation
public double getZLocation()
zLocation
public FastEntityStatePdu setPsi(float pPsi)
psi
public float getPsi()
psi
public FastEntityStatePdu setTheta(float pTheta)
theta
public float getTheta()
theta
public FastEntityStatePdu setPhi(float pPhi)
phi
public float getPhi()
phi
public FastEntityStatePdu setEntityAppearance(int pEntityAppearance)
entityAppearance
public int getEntityAppearance()
entityAppearance
public FastEntityStatePdu setDeadReckoningAlgorithm(byte pDeadReckoningAlgorithm)
deadReckoningAlgorithm
public byte getDeadReckoningAlgorithm()
deadReckoningAlgorithm
public FastEntityStatePdu setOtherParameters(byte[] pOtherParameters)
otherParameters
public byte[] getOtherParameters()
otherParameters
public FastEntityStatePdu setXAcceleration(float pXAcceleration)
xAcceleration
public float getXAcceleration()
xAcceleration
public FastEntityStatePdu setYAcceleration(float pYAcceleration)
yAcceleration
public float getYAcceleration()
yAcceleration
public FastEntityStatePdu setZAcceleration(float pZAcceleration)
zAcceleration
public float getZAcceleration()
zAcceleration
public FastEntityStatePdu setXAngularVelocity(float pXAngularVelocity)
xAngularVelocity
public float getXAngularVelocity()
xAngularVelocity
public FastEntityStatePdu setYAngularVelocity(float pYAngularVelocity)
yAngularVelocity
public float getYAngularVelocity()
yAngularVelocity
public FastEntityStatePdu setZAngularVelocity(float pZAngularVelocity)
zAngularVelocity
public float getZAngularVelocity()
zAngularVelocity
public FastEntityStatePdu setMarking(byte[] pMarking)
marking
public byte[] getMarking()
marking
public FastEntityStatePdu setCapabilities(short pCapabilities)
capabilities
public short getCapabilities()
capabilities
public FastEntityStatePdu setVariableParameters(java.util.List<VariableParameter> pVariableParameters)
variableParameters
public java.util.List<VariableParameter> getVariableParameters()
variableParameters
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to