|
|||||||||
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.EntityManagementFamilyPdu
edu.nps.moves.dismobile.AggregateStatePdu
public class AggregateStatePdu
Section 5.3.9.1 informationa bout aggregating entities anc communicating information about the aggregated entities. requires manual intervention to fix the padding between entityID lists and silent aggregate sysem lists--this padding is dependent on how many entityIDs there are, and needs to be on a 32 bit word boundary. UNFINISHED 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 EntityID |
aggregateID
ID of aggregated entities |
protected java.util.List<AggregateID> |
aggregateIDList
aggregates list |
protected AggregateMarking |
aggregateMarking
marking for aggregate; first char is charset type, rest is char data |
protected short |
aggregateState
state of aggregate |
protected EntityType |
aggregateType
entity type of the aggregated entities |
protected Vector3Double |
centerOfMass
center of mass of the aggregation |
protected Vector3Float |
dimensions
dimensions of bounding box for the aggregated entities, origin at the center of mass |
protected java.util.List<EntityID> |
entityIDList
entity ID list |
protected short |
forceID
force ID |
protected long |
formation
formation of aggregated entities |
protected int |
numberOfDisAggregates
number of aggregates |
protected int |
numberOfDisEntities
number of entities |
protected int |
numberOfSilentAggregateTypes
number of silent aggregate types |
protected int |
numberOfSilentEntityTypes
number of silent entity types |
protected long |
numberOfVariableDatumRecords
number of variable datum records |
protected Orientation |
orientation
orientation of the bounding box |
protected short |
pad2
^^^padding to put the start of the next list on a 32 bit boundary. |
protected java.util.List<EntityType> |
silentAggregateSystemList
silent entity types |
protected java.util.List<EntityType> |
silentEntitySystemList
silent entity types |
protected java.util.List<VariableDatum> |
variableDatumList
variableDatums |
protected Vector3Float |
velocity
velocity of aggregation |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
AggregateStatePdu()
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 |
EntityID |
getAggregateID()
|
java.util.List<AggregateID> |
getAggregateIDList()
|
AggregateMarking |
getAggregateMarking()
|
short |
getAggregateState()
|
EntityType |
getAggregateType()
|
Vector3Double |
getCenterOfMass()
|
Vector3Float |
getDimensions()
|
java.util.List<EntityID> |
getEntityIDList()
|
short |
getForceID()
|
long |
getFormation()
|
int |
getMarshalledSize()
|
int |
getNumberOfDisAggregates()
|
int |
getNumberOfDisEntities()
|
int |
getNumberOfSilentAggregateTypes()
|
int |
getNumberOfSilentEntityTypes()
|
long |
getNumberOfVariableDatumRecords()
|
Orientation |
getOrientation()
|
short |
getPad2()
|
java.util.List<EntityType> |
getSilentAggregateSystemList()
|
java.util.List<EntityType> |
getSilentEntitySystemList()
|
java.util.List<VariableDatum> |
getVariableDatumList()
|
Vector3Float |
getVelocity()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setAggregateID(EntityID pAggregateID)
|
void |
setAggregateIDList(java.util.List<AggregateID> pAggregateIDList)
|
void |
setAggregateMarking(AggregateMarking pAggregateMarking)
|
void |
setAggregateState(short pAggregateState)
|
void |
setAggregateType(EntityType pAggregateType)
|
void |
setCenterOfMass(Vector3Double pCenterOfMass)
|
void |
setDimensions(Vector3Float pDimensions)
|
void |
setEntityIDList(java.util.List<EntityID> pEntityIDList)
|
void |
setForceID(short pForceID)
|
void |
setFormation(long pFormation)
|
void |
setNumberOfDisAggregates(int pNumberOfDisAggregates)
Note that setting this value will not change the marshalled value. |
void |
setNumberOfDisEntities(int pNumberOfDisEntities)
Note that setting this value will not change the marshalled value. |
void |
setNumberOfSilentAggregateTypes(int pNumberOfSilentAggregateTypes)
Note that setting this value will not change the marshalled value. |
void |
setNumberOfSilentEntityTypes(int pNumberOfSilentEntityTypes)
Note that setting this value will not change the marshalled value. |
void |
setNumberOfVariableDatumRecords(long pNumberOfVariableDatumRecords)
Note that setting this value will not change the marshalled value. |
void |
setOrientation(Orientation pOrientation)
|
void |
setPad2(short pPad2)
|
void |
setSilentAggregateSystemList(java.util.List<EntityType> pSilentAggregateSystemList)
|
void |
setSilentEntitySystemList(java.util.List<EntityType> pSilentEntitySystemList)
|
void |
setVariableDatumList(java.util.List<VariableDatum> pVariableDatumList)
|
void |
setVelocity(Vector3Float pVelocity)
|
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 EntityID aggregateID
protected short forceID
protected short aggregateState
protected EntityType aggregateType
protected long formation
protected AggregateMarking aggregateMarking
protected Vector3Float dimensions
protected Orientation orientation
protected Vector3Double centerOfMass
protected Vector3Float velocity
protected int numberOfDisAggregates
protected int numberOfDisEntities
protected int numberOfSilentAggregateTypes
protected int numberOfSilentEntityTypes
protected java.util.List<AggregateID> aggregateIDList
protected java.util.List<EntityID> entityIDList
protected short pad2
protected java.util.List<EntityType> silentAggregateSystemList
protected java.util.List<EntityType> silentEntitySystemList
protected long numberOfVariableDatumRecords
protected java.util.List<VariableDatum> variableDatumList
Constructor Detail |
---|
public AggregateStatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class EntityManagementFamilyPdu
public void setAggregateID(EntityID pAggregateID)
public EntityID getAggregateID()
public void setForceID(short pForceID)
public short getForceID()
public void setAggregateState(short pAggregateState)
public short getAggregateState()
public void setAggregateType(EntityType pAggregateType)
public EntityType getAggregateType()
public void setFormation(long pFormation)
public long getFormation()
public void setAggregateMarking(AggregateMarking pAggregateMarking)
public AggregateMarking getAggregateMarking()
public void setDimensions(Vector3Float pDimensions)
public Vector3Float getDimensions()
public void setOrientation(Orientation pOrientation)
public Orientation getOrientation()
public void setCenterOfMass(Vector3Double pCenterOfMass)
public Vector3Double getCenterOfMass()
public void setVelocity(Vector3Float pVelocity)
public Vector3Float getVelocity()
public int getNumberOfDisAggregates()
public void setNumberOfDisAggregates(int pNumberOfDisAggregates)
public int getNumberOfDisEntities()
public void setNumberOfDisEntities(int pNumberOfDisEntities)
public int getNumberOfSilentAggregateTypes()
public void setNumberOfSilentAggregateTypes(int pNumberOfSilentAggregateTypes)
public int getNumberOfSilentEntityTypes()
public void setNumberOfSilentEntityTypes(int pNumberOfSilentEntityTypes)
public void setAggregateIDList(java.util.List<AggregateID> pAggregateIDList)
public java.util.List<AggregateID> getAggregateIDList()
public void setEntityIDList(java.util.List<EntityID> pEntityIDList)
public java.util.List<EntityID> getEntityIDList()
public void setPad2(short pPad2)
public short getPad2()
public void setSilentAggregateSystemList(java.util.List<EntityType> pSilentAggregateSystemList)
public java.util.List<EntityType> getSilentAggregateSystemList()
public void setSilentEntitySystemList(java.util.List<EntityType> pSilentEntitySystemList)
public java.util.List<EntityType> getSilentEntitySystemList()
public long getNumberOfVariableDatumRecords()
public void setNumberOfVariableDatumRecords(long pNumberOfVariableDatumRecords)
public void setVariableDatumList(java.util.List<VariableDatum> pVariableDatumList)
public java.util.List<VariableDatum> getVariableDatumList()
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityManagementFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityManagementFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class EntityManagementFamilyPdu
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 EntityManagementFamilyPdu
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 EntityManagementFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied object
equalsImpl
in class EntityManagementFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |