Class GriddedDataPdu
java.lang.Object
edu.nps.moves.dis7.pdus.Pdu
edu.nps.moves.dis7.pdus.PduBase
edu.nps.moves.dis7.pdus.SyntheticEnvironmentFamilyPdu
edu.nps.moves.dis7.pdus.GriddedDataPdu
- All Implemented Interfaces:
Marshaller
,Serializable
7.10.3 Used to communicate information about global, spatially varying environmental effects.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serializationprotected GriddedDataConstantGrid
are domain grid axes identidal to those of the priveious domain update?protected GriddedDataCoordinateSystem
coordinate system of the grid uid 244protected DataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serializationprotected SimulationIdentifier
environmental simulation application ID provides a unique identifierprotected EntityType
type of environmentprotected short
unique identifier for each piece of environmental dataprotected List
<GridAxisDescriptor> gridAxisDescriptors is an undescribed parameter...gridDataRecords is an undescribed parameter...static final String
The name of this PDU typeprotected byte
number of grid axes for the environmental dataprotected EulerAngles
orientation of the data gridprotected byte
paddingprotected short
paddingprotected short
sequence number for the total set of PDUS used to transmit the dataprotected short
Total number of PDUS used to transmit the dataprotected ClockTime
valid time of the enviormental data sample, 64-bit unsigned intprotected int
total number of all data values for all pdus for an environmental sampleprotected byte
total number of data values at each grid point.Fields inherited from class edu.nps.moves.dis7.pdus.SyntheticEnvironmentFamilyPdu
FAMILY_NAME
Fields inherited from class edu.nps.moves.dis7.pdus.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
copy method creates a deep copy of current object using preferred marshalling methodCreates a "deep copy" of current object using ByteBuffer methods.copy method creates a deep copy of current object using DataOutputStream methods.boolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectGetter forconstantGrid
Getter forcoordinateSystem
Getter forenvironmentalSimulationApplicationID
Getter forenvironmentType
short
Getter forfieldNumber
Getter forgridAxisDescriptors
Getter forgridDataRecords
int
Returns size of this serialized (marshalled) object in bytesGetter fororientation
byte
Getter forpadding1
short
Getter forpadding2
short
Getter forpduNumber
short
Getter forpduTotal
Getter forsampleTime
int
Getter fortotalValues
byte
Getter forvectorDimension
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setConstantGrid
(GriddedDataConstantGrid pConstantGrid) Setter forconstantGrid
setCoordinateSystem
(GriddedDataCoordinateSystem pCoordinateSystem) Setter forcoordinateSystem
setEnvironmentalSimulationApplicationID
(SimulationIdentifier pEnvironmentalSimulationApplicationID) Setter forenvironmentalSimulationApplicationID
setEnvironmentType
(EntityType pEnvironmentType) Setter forenvironmentType
setFieldNumber
(int pFieldNumber) Utility setter forfieldNumber
setFieldNumber
(short pFieldNumber) Setter forfieldNumber
setGridAxisDescriptors
(List<GridAxisDescriptor> pGridAxisDescriptors) Setter forgridAxisDescriptors
setGridDataRecords
(List<GridData> pGridDataRecords) Setter forgridDataRecords
setOrientation
(EulerAngles pOrientation) Setter fororientation
setPadding1
(byte pPadding1) Setter forpadding1
setPadding1
(int pPadding1) Utility setter forpadding1
setPadding2
(int pPadding2) Utility setter forpadding2
setPadding2
(short pPadding2) Setter forpadding2
setPduNumber
(int pPduNumber) Utility setter forpduNumber
setPduNumber
(short pPduNumber) Setter forpduNumber
setPduTotal
(int pPduTotal) Utility setter forpduTotal
setPduTotal
(short pPduTotal) Setter forpduTotal
setSampleTime
(ClockTime pSampleTime) Setter forsampleTime
setTotalValues
(int pTotalValues) Setter fortotalValues
setVectorDimension
(byte pVectorDimension) Setter forvectorDimension
setVectorDimension
(int pVectorDimension) Utility setter forvectorDimension
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.Methods inherited from class edu.nps.moves.dis7.pdus.PduBase
getPadding, getPduStatus, setPadding, setPadding, setPduStatus
Methods inherited from class edu.nps.moves.dis7.pdus.Pdu
copyByPduFactory, getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, getTimestampSeconds, isAcknowledgeRPdu, isActionRequestPdu, isActionRequestRPdu, isActionResponsePdu, isActionResponseRPdu, isAggregateStatePdu, isAppearancePdu, isArealObjectStatePdu, isArticulatedPartsPdu, isAttributePdu, isCollisionElasticPdu, isCollisionPdu, isCommentPdu, isCommentRPdu, isCreateEntityPdu, isCreateEntityRPdu, isDataPdu, isDataQueryPdu, isDataQueryRPdu, isDataRPdu, isDesignatorPdu, isDetonationPdu, isDirectedEnergyFirePdu, isDistributedEmissionsRegenerationFamilyPdu, isElectromagneticEmissionPdu, isEntityDamageStatusPdu, isEntityInformationInteractionFamilyPdu, isEntityManagementFamilyPdu, isEntityStatePdu, isEntityStateUpdatePdu, isEnvironmentalProcessPdu, isEventReportPdu, isEventReportRPdu, isFirePdu, isGriddedDataPdu, isIFFPdu, isInformationOperationsActionPdu, isInformationOperationsFamilyPdu, isInformationOperationsReportPdu, isIntercomControlPdu, isIntercomSignalPdu, isIsGroupOfPdu, isIsPartOfPdu, isLEDetonationPdu, isLEFirePdu, isLinearObjectStatePdu, isLiveEntityDetonationPdu, isLiveEntityFirePdu, isLogisticsFamilyPdu, isMinefieldDataPdu, isMinefieldFamilyPdu, isMinefieldQueryPdu, isMinefieldResponseNACKPdu, isMinefieldStatePdu, isPointObjectStatePdu, isRadioCommunicationsFamilyPdu, isReceiverPdu, isRecordQueryRPdu, isRecordRPdu, isReliablePdu, isRemoveEntityPdu, isRemoveEntityRPdu, isRepairCompletePdu, isRepairResponsePdu, isResupplyCancelPdu, isResupplyOfferPdu, isResupplyReceivedPdu, isSEESPdu, isSetDataPdu, isSetDataRPdu, isSetRecordRPdu, isSignalPdu, isSimulationManagementFamilyPdu, isSimulationManagementWithReliabilityFamilyPdu, isStartResumePdu, isStartResumeRPdu, isStopFreezePdu, isStopFreezeRPdu, isSupplementalEmissionEntityStatePdu, isSyntheticEnvironmentFamilyPdu, isTransferOwnershipPdu, isTransmitterPdu, isTSPIPdu, isUnderwaterAcousticPdu, isWarfareFamilyPdu, marshal, occursAfter, occursBefore, occursSameTime, setExerciseID, setExerciseID, setLength, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp, setTimestampSeconds
-
Field Details
-
NAME
-
environmentalSimulationApplicationID
environmental simulation application ID provides a unique identifier -
fieldNumber
protected short fieldNumberunique identifier for each piece of environmental data -
pduNumber
protected short pduNumbersequence number for the total set of PDUS used to transmit the data -
pduTotal
protected short pduTotalTotal number of PDUS used to transmit the data -
coordinateSystem
coordinate system of the grid uid 244 -
numberOfGridAxes
protected byte numberOfGridAxesnumber of grid axes for the environmental data -
constantGrid
are domain grid axes identidal to those of the priveious domain update? uid 245 -
environmentType
type of environment -
orientation
orientation of the data grid -
sampleTime
valid time of the enviormental data sample, 64-bit unsigned int -
totalValues
protected int totalValuestotal number of all data values for all pdus for an environmental sample -
vectorDimension
protected byte vectorDimensiontotal number of data values at each grid point. -
padding1
protected byte padding1padding -
padding2
protected short padding2padding -
gridAxisDescriptors
gridAxisDescriptors is an undescribed parameter... -
gridDataRecords
-
byteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serialization- See Also:
-
dataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serialization- See Also:
-
-
Constructor Details
-
GriddedDataPdu
public GriddedDataPdu()Constructor creates and configures a new instance object
-
-
Method Details
-
copy
copy method creates a deep copy of current object using preferred marshalling method- Returns:
- deep copy of PDU
-
copyByteBuffer
Creates a "deep copy" of current object using ByteBuffer methods.- Returns:
- deep copy of PDU
-
copyDataOutputStream
copy method creates a deep copy of current object using DataOutputStream methods.- Returns:
- deep copy of PDU
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Specified by:
getMarshalledSize
in interfaceMarshaller
- Overrides:
getMarshalledSize
in classSyntheticEnvironmentFamilyPdu
- Returns:
- serialized size in bytes
- See Also:
-
setEnvironmentalSimulationApplicationID
public GriddedDataPdu setEnvironmentalSimulationApplicationID(SimulationIdentifier pEnvironmentalSimulationApplicationID) Setter forenvironmentalSimulationApplicationID
- Parameters:
pEnvironmentalSimulationApplicationID
- new value of interest- Returns:
- same object to permit progressive setters
-
getEnvironmentalSimulationApplicationID
Getter forenvironmentalSimulationApplicationID
- Returns:
- value of interest
-
setFieldNumber
Setter forfieldNumber
- Parameters:
pFieldNumber
- new value of interest- Returns:
- same object to permit progressive setters
-
setFieldNumber
Utility setter forfieldNumber
- Parameters:
pFieldNumber
- new value of interest- Returns:
- same object to permit progressive setters
-
getFieldNumber
-
setPduNumber
Setter forpduNumber
- Parameters:
pPduNumber
- new value of interest- Returns:
- same object to permit progressive setters
-
setPduNumber
Utility setter forpduNumber
- Parameters:
pPduNumber
- new value of interest- Returns:
- same object to permit progressive setters
-
getPduNumber
-
setPduTotal
Setter forpduTotal
- Parameters:
pPduTotal
- new value of interest- Returns:
- same object to permit progressive setters
-
setPduTotal
Utility setter forpduTotal
- Parameters:
pPduTotal
- new value of interest- Returns:
- same object to permit progressive setters
-
getPduTotal
-
setCoordinateSystem
Setter forcoordinateSystem
- Parameters:
pCoordinateSystem
- new value of interest- Returns:
- same object to permit progressive setters
-
getCoordinateSystem
Getter forcoordinateSystem
- Returns:
- value of interest
-
setConstantGrid
Setter forconstantGrid
- Parameters:
pConstantGrid
- new value of interest- Returns:
- same object to permit progressive setters
-
getConstantGrid
-
setEnvironmentType
Setter forenvironmentType
- Parameters:
pEnvironmentType
- new value of interest- Returns:
- same object to permit progressive setters
-
getEnvironmentType
-
setOrientation
Setter fororientation
- Parameters:
pOrientation
- new value of interest- Returns:
- same object to permit progressive setters
-
getOrientation
-
setSampleTime
Setter forsampleTime
- Parameters:
pSampleTime
- new value of interest- Returns:
- same object to permit progressive setters
-
getSampleTime
-
setTotalValues
Setter fortotalValues
- Parameters:
pTotalValues
- new value of interest- Returns:
- same object to permit progressive setters
-
getTotalValues
-
setVectorDimension
Setter forvectorDimension
- Parameters:
pVectorDimension
- new value of interest- Returns:
- same object to permit progressive setters
-
setVectorDimension
Utility setter forvectorDimension
- Parameters:
pVectorDimension
- new value of interest- Returns:
- same object to permit progressive setters
-
getVectorDimension
-
setPadding1
Setter forpadding1
- Parameters:
pPadding1
- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding1
Utility setter forpadding1
- Parameters:
pPadding1
- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding1
-
setPadding2
Setter forpadding2
- Parameters:
pPadding2
- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding2
Utility setter forpadding2
- Parameters:
pPadding2
- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding2
-
setGridAxisDescriptors
Setter forgridAxisDescriptors
- Parameters:
pGridAxisDescriptors
- new value of interest- Returns:
- same object to permit progressive setters
-
getGridAxisDescriptors
Getter forgridAxisDescriptors
- Returns:
- value of interest
-
setGridDataRecords
Setter forgridDataRecords
- Parameters:
pGridDataRecords
- new value of interest- Returns:
- same object to permit progressive setters
-
getGridDataRecords
-
marshal
Serializes an object to a DataOutputStream.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classSyntheticEnvironmentFamilyPdu
- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classSyntheticEnvironmentFamilyPdu
- Parameters:
dis
- the InputStream- Returns:
- marshalled serialized size in bytes
- Throws:
Exception
- if something goes wrong- See Also:
-
marshal
Packs an object into the ByteBuffer.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classSyntheticEnvironmentFamilyPdu
- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if byteBuffer is too smallReadOnlyBufferException
- if byteBuffer is read onlyException
- ByteBuffer-generated exception- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classSyntheticEnvironmentFamilyPdu
- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- marshalled serialized size in bytes
- Throws:
BufferUnderflowException
- if byteBuffer is too smallException
- ByteBuffer-generated exception- See Also:
-
equals
- Overrides:
equals
in classSyntheticEnvironmentFamilyPdu
-
equalsImpl
Description copied from class:Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Overrides:
equalsImpl
in classSyntheticEnvironmentFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toString
in classSyntheticEnvironmentFamilyPdu
-
hashCode
-