edu.nps.moves.dis
Class IsGroupOfPdu

java.lang.Object
  extended by edu.nps.moves.dis.Pdu
      extended by edu.nps.moves.dis.EntityManagementFamilyPdu
          extended by edu.nps.moves.dis.IsGroupOfPdu
All Implemented Interfaces:
java.io.Serializable

@Entity
public class IsGroupOfPdu
extends EntityManagementFamilyPdu
implements java.io.Serializable

Section 5.3.9.2 Information about a particular group of entities grouped together for the purposes of netowrk bandwidth reduction or aggregation. Needs manual cleanup. The GED size requires a database lookup. 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

Author:
DMcG
See Also:
Serialized Form

Field Summary
 long fk_groupEntityID
           
protected  short groupedEntityCategory
          type of entities constituting the group
protected  java.util.List<VariableDatum> groupedEntityDescriptions
          GED records about each individual entity in the group.
protected  EntityID groupEntityID
          ID of aggregated entities
protected  double latitude
          latitude
protected  double longitude
          longitude
protected  short numberOfGroupedEntities
          Number of individual entities constituting the group
protected  long pad2
          padding
 
Fields inherited from class edu.nps.moves.dis.Pdu
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
 
Constructor Summary
IsGroupOfPdu()
          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 getGroupedEntityCategory()
           
 java.util.List<VariableDatum> getGroupedEntityDescriptions()
           
 EntityID getGroupEntityID()
           
 double getLatitude()
           
 double getLongitude()
           
 int getMarshalledSize()
           
 short getNumberOfGroupedEntities()
           
 long getPad2()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setGroupedEntityCategory(short pGroupedEntityCategory)
           
 void setGroupedEntityDescriptions(java.util.List<VariableDatum> pGroupedEntityDescriptions)
           
 void setGroupEntityID(EntityID pGroupEntityID)
           
 void setLatitude(double pLatitude)
           
 void setLongitude(double pLongitude)
           
 void setNumberOfGroupedEntities(short pNumberOfGroupedEntities)
          Note that setting this value will not change the marshalled value.
 void setPad2(long pPad2)
           
 void unmarshal(java.nio.ByteBuffer buff)
          Unpacks a Pdu from the underlying data.
 void unmarshal(java.io.DataInputStream dis)
           
 
Methods inherited from class edu.nps.moves.dis.Pdu
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getPk_Pdu, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setPk_Pdu, setProtocolFamily, setProtocolVersion, setTimestamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupEntityID

protected EntityID groupEntityID
ID of aggregated entities


groupedEntityCategory

protected short groupedEntityCategory
type of entities constituting the group


numberOfGroupedEntities

protected short numberOfGroupedEntities
Number of individual entities constituting the group


pad2

protected long pad2
padding


latitude

protected double latitude
latitude


longitude

protected double longitude
longitude


groupedEntityDescriptions

protected java.util.List<VariableDatum> groupedEntityDescriptions
GED records about each individual entity in the group. ^^^this is wrong--need a database lookup to find the actual size of the list elements


fk_groupEntityID

public long fk_groupEntityID
Constructor Detail

IsGroupOfPdu

public IsGroupOfPdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class EntityManagementFamilyPdu

setGroupEntityID

public void setGroupEntityID(EntityID pGroupEntityID)

getGroupEntityID

public EntityID getGroupEntityID()

setGroupedEntityCategory

public void setGroupedEntityCategory(short pGroupedEntityCategory)

getGroupedEntityCategory

public short getGroupedEntityCategory()

getNumberOfGroupedEntities

public short getNumberOfGroupedEntities()

setNumberOfGroupedEntities

public void setNumberOfGroupedEntities(short pNumberOfGroupedEntities)
Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfGroupedEntities method will also be based on the actual list length rather than this value. The method is simply here for java bean completeness.


setPad2

public void setPad2(long pPad2)

getPad2

public long getPad2()

setLatitude

public void setLatitude(double pLatitude)

getLatitude

public double getLatitude()

setLongitude

public void setLongitude(double pLongitude)

getLongitude

public double getLongitude()

setGroupedEntityDescriptions

public void setGroupedEntityDescriptions(java.util.List<VariableDatum> pGroupedEntityDescriptions)

getGroupedEntityDescriptions

public java.util.List<VariableDatum> getGroupedEntityDescriptions()

marshal

public void marshal(java.io.DataOutputStream dos)
Overrides:
marshal in class EntityManagementFamilyPdu

unmarshal

public void unmarshal(java.io.DataInputStream dis)
Overrides:
unmarshal in class EntityManagementFamilyPdu

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Overrides:
marshal in class EntityManagementFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Overrides:
unmarshal in class EntityManagementFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class EntityManagementFamilyPdu

equalsImpl

public boolean equalsImpl(java.lang.Object obj)
Description copied from class: Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object

Overrides:
equalsImpl in class EntityManagementFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.