|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.EntityInformationFamilyPdu
edu.nps.moves.dismobile.FastEntityStatePdu
public class FastEntityStatePdu
Section 5.3.3.1. Represents the postion and state of one entity in the world. This is identical in function to entity state pdu, but generates less garbage to collect in the Java world. COMPLETE Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
protected short |
altCategory
category of entity |
protected int |
altCountry
country to which the design of the entity is attributed |
protected short |
altDomain
Domain of entity (air, surface, subsurface, space, etc) |
protected short |
altEntityKind
Kind of entity |
protected short |
altExtra
|
protected short |
altSpecific
specific info based on subcategory field |
protected short |
altSubcategory
subcategory of entity |
protected int |
application
The application ID |
protected java.util.List<ArticulationParameter> |
articulationParameters
variable length list of articulation parameters |
protected int |
capabilities
a series of bit flags |
protected short |
category
category of entity |
protected int |
country
country to which the design of the entity is attributed |
protected short |
deadReckoningAlgorithm
enumeration of what dead reckoning algorighm to use |
protected short |
domain
Domain of entity (air, surface, subsurface, space, etc) |
protected int |
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 short |
entityKind
Kind of entity |
protected short |
extra
|
protected short |
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 |
numberOfArticulationParameters
How many 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 int |
site
The site ID |
protected short |
specif
specific info based on subcategory field. |
protected short |
subcategory
subcategory of entity |
protected float |
theta
|
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 |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
FastEntityStatePdu()
Constructor |
Method Summary | |
---|---|
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 |
short |
getAltCategory()
|
int |
getAltCountry()
|
short |
getAltDomain()
|
short |
getAltEntityKind()
|
short |
getAltExtra()
|
short |
getAltSpecific()
|
short |
getAltSubcategory()
|
int |
getApplication()
|
java.util.List<ArticulationParameter> |
getArticulationParameters()
|
int |
getCapabilities()
|
short |
getCategory()
|
int |
getCountry()
|
short |
getDeadReckoningAlgorithm()
|
short |
getDomain()
|
int |
getEntity()
|
int |
getEntityAppearance()
|
short |
getEntityKind()
|
short |
getExtra()
|
short |
getForceId()
|
byte[] |
getMarking()
|
int |
getMarshalledSize()
|
byte |
getNumberOfArticulationParameters()
|
byte[] |
getOtherParameters()
|
float |
getPhi()
|
float |
getPsi()
|
int |
getSite()
|
short |
getSpecif()
|
short |
getSubcategory()
|
float |
getTheta()
|
float |
getXAcceleration()
|
float |
getXAngularVelocity()
|
double |
getXLocation()
|
float |
getXVelocity()
|
float |
getYAcceleration()
|
float |
getYAngularVelocity()
|
double |
getYLocation()
|
float |
getYVelocity()
|
float |
getZAcceleration()
|
float |
getZAngularVelocity()
|
double |
getZLocation()
|
float |
getZVelocity()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setAltCategory(short pAltCategory)
|
void |
setAltCountry(int pAltCountry)
|
void |
setAltDomain(short pAltDomain)
|
void |
setAltEntityKind(short pAltEntityKind)
|
void |
setAltExtra(short pAltExtra)
|
void |
setAltSpecific(short pAltSpecific)
|
void |
setAltSubcategory(short pAltSubcategory)
|
void |
setApplication(int pApplication)
|
void |
setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
|
void |
setCapabilities(int pCapabilities)
|
void |
setCategory(short pCategory)
|
void |
setCountry(int pCountry)
|
void |
setDeadReckoningAlgorithm(short pDeadReckoningAlgorithm)
|
void |
setDomain(short pDomain)
|
void |
setEntity(int pEntity)
|
void |
setEntityAppearance(int pEntityAppearance)
|
void |
setEntityKind(short pEntityKind)
|
void |
setExtra(short pExtra)
|
void |
setForceId(short pForceId)
|
void |
setMarking(byte[] pMarking)
|
void |
setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
Note that setting this value will not change the marshalled value. |
void |
setOtherParameters(byte[] pOtherParameters)
|
void |
setPhi(float pPhi)
|
void |
setPsi(float pPsi)
|
void |
setSite(int pSite)
|
void |
setSpecif(short pSpecif)
|
void |
setSubcategory(short pSubcategory)
|
void |
setTheta(float pTheta)
|
void |
setXAcceleration(float pXAcceleration)
|
void |
setXAngularVelocity(float pXAngularVelocity)
|
void |
setXLocation(double pXLocation)
|
void |
setXVelocity(float pXVelocity)
|
void |
setYAcceleration(float pYAcceleration)
|
void |
setYAngularVelocity(float pYAngularVelocity)
|
void |
setYLocation(double pYLocation)
|
void |
setYVelocity(float pYVelocity)
|
void |
setZAcceleration(float pZAcceleration)
|
void |
setZAngularVelocity(float pZAngularVelocity)
|
void |
setZLocation(double pZLocation)
|
void |
setZVelocity(float pZVelocity)
|
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int site
protected int application
protected int entity
protected short forceId
protected byte numberOfArticulationParameters
protected short entityKind
protected short domain
protected int country
protected short category
protected short subcategory
protected short specif
protected short extra
protected short altEntityKind
protected short altDomain
protected int altCountry
protected short altCategory
protected short altSubcategory
protected short altSpecific
protected short 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 short 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 int capabilities
protected java.util.List<ArticulationParameter> articulationParameters
Constructor Detail |
---|
public FastEntityStatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public void setSite(int pSite)
public int getSite()
public void setApplication(int pApplication)
public int getApplication()
public void setEntity(int pEntity)
public int getEntity()
public void setForceId(short pForceId)
public short getForceId()
public byte getNumberOfArticulationParameters()
public void setNumberOfArticulationParameters(byte pNumberOfArticulationParameters)
public void setEntityKind(short pEntityKind)
public short getEntityKind()
public void setDomain(short pDomain)
public short getDomain()
public void setCountry(int pCountry)
public int getCountry()
public void setCategory(short pCategory)
public short getCategory()
public void setSubcategory(short pSubcategory)
public short getSubcategory()
public void setSpecif(short pSpecif)
public short getSpecif()
public void setExtra(short pExtra)
public short getExtra()
public void setAltEntityKind(short pAltEntityKind)
public short getAltEntityKind()
public void setAltDomain(short pAltDomain)
public short getAltDomain()
public void setAltCountry(int pAltCountry)
public int getAltCountry()
public void setAltCategory(short pAltCategory)
public short getAltCategory()
public void setAltSubcategory(short pAltSubcategory)
public short getAltSubcategory()
public void setAltSpecific(short pAltSpecific)
public short getAltSpecific()
public void setAltExtra(short pAltExtra)
public short getAltExtra()
public void setXVelocity(float pXVelocity)
public float getXVelocity()
public void setYVelocity(float pYVelocity)
public float getYVelocity()
public void setZVelocity(float pZVelocity)
public float getZVelocity()
public void setXLocation(double pXLocation)
public double getXLocation()
public void setYLocation(double pYLocation)
public double getYLocation()
public void setZLocation(double pZLocation)
public double getZLocation()
public void setPsi(float pPsi)
public float getPsi()
public void setTheta(float pTheta)
public float getTheta()
public void setPhi(float pPhi)
public float getPhi()
public void setEntityAppearance(int pEntityAppearance)
public int getEntityAppearance()
public void setDeadReckoningAlgorithm(short pDeadReckoningAlgorithm)
public short getDeadReckoningAlgorithm()
public void setOtherParameters(byte[] pOtherParameters)
public byte[] getOtherParameters()
public void setXAcceleration(float pXAcceleration)
public float getXAcceleration()
public void setYAcceleration(float pYAcceleration)
public float getYAcceleration()
public void setZAcceleration(float pZAcceleration)
public float getZAcceleration()
public void setXAngularVelocity(float pXAngularVelocity)
public float getXAngularVelocity()
public void setYAngularVelocity(float pYAngularVelocity)
public float getYAngularVelocity()
public void setZAngularVelocity(float pZAngularVelocity)
public float getZAngularVelocity()
public void setMarking(byte[] pMarking)
public byte[] getMarking()
public void setCapabilities(int pCapabilities)
public int getCapabilities()
public void setArticulationParameters(java.util.List<ArticulationParameter> pArticulationParameters)
public java.util.List<ArticulationParameter> getArticulationParameters()
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException
- if buff is too small
java.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied object
equalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |