Package edu.nps.moves.dis7.pdus
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 ByteArrayOutputStreambyteArrayOutputStream (baos) is used for marshal/unmarshal serializationprotected GriddedDataConstantGridare domain grid axes identidal to those of the priveious domain update?protected GriddedDataCoordinateSystemcoordinate system of the grid uid 244protected DataOutputStreamdataOutputStream (dos) is used for marshal/unmarshal serializationprotected SimulationIdentifierenvironmental simulation application ID provides a unique identifierprotected EntityTypetype of environmentprotected shortunique identifier for each piece of environmental dataprotected List<GridAxisDescriptor> gridAxisDescriptors is an undescribed parameter...gridDataRecords is an undescribed parameter...static final StringThe name of this PDU typeprotected bytenumber of grid axes for the environmental dataprotected EulerAnglesorientation of the data gridprotected bytepaddingprotected shortpaddingprotected shortsequence number for the total set of PDUS used to transmit the dataprotected shortTotal number of PDUS used to transmit the dataprotected ClockTimevalid time of the enviormental data sample, 64-bit unsigned intprotected inttotal number of all data values for all pdus for an environmental sampleprotected bytetotal number of data values at each grid point.Fields inherited from class edu.nps.moves.dis7.pdus.SyntheticEnvironmentFamilyPdu
FAMILY_NAMEFields 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.booleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectGetter forconstantGridGetter forcoordinateSystemGetter forenvironmentalSimulationApplicationIDGetter forenvironmentTypeshortGetter forfieldNumberGetter forgridAxisDescriptorsGetter forgridDataRecordsintReturns size of this serialized (marshalled) object in bytesGetter fororientationbyteGetter forpadding1shortGetter forpadding2shortGetter forpduNumbershortGetter forpduTotalGetter forsampleTimeintGetter fortotalValuesbyteGetter forvectorDimensioninthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setConstantGrid(GriddedDataConstantGrid pConstantGrid) Setter forconstantGridsetCoordinateSystem(GriddedDataCoordinateSystem pCoordinateSystem) Setter forcoordinateSystemsetEnvironmentalSimulationApplicationID(SimulationIdentifier pEnvironmentalSimulationApplicationID) Setter forenvironmentalSimulationApplicationIDsetEnvironmentType(EntityType pEnvironmentType) Setter forenvironmentTypesetFieldNumber(int pFieldNumber) Utility setter forfieldNumbersetFieldNumber(short pFieldNumber) Setter forfieldNumbersetGridAxisDescriptors(List<GridAxisDescriptor> pGridAxisDescriptors) Setter forgridAxisDescriptorssetGridDataRecords(List<GridData> pGridDataRecords) Setter forgridDataRecordssetOrientation(EulerAngles pOrientation) Setter fororientationsetPadding1(byte pPadding1) Setter forpadding1setPadding1(int pPadding1) Utility setter forpadding1setPadding2(int pPadding2) Utility setter forpadding2setPadding2(short pPadding2) Setter forpadding2setPduNumber(int pPduNumber) Utility setter forpduNumbersetPduNumber(short pPduNumber) Setter forpduNumbersetPduTotal(int pPduTotal) Utility setter forpduTotalsetPduTotal(short pPduTotal) Setter forpduTotalsetSampleTime(ClockTime pSampleTime) Setter forsampleTimesetTotalValues(int pTotalValues) Setter fortotalValuessetVectorDimension(byte pVectorDimension) Setter forvectorDimensionsetVectorDimension(int pVectorDimension) Utility setter forvectorDimensiontoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.Methods inherited from class edu.nps.moves.dis7.pdus.PduBase
getPadding, getPduStatus, setPadding, setPadding, setPduStatusMethods 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:
getMarshalledSizein interfaceMarshaller- Overrides:
getMarshalledSizein 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:
marshalin interfaceMarshaller- Overrides:
marshalin classSyntheticEnvironmentFamilyPdu- Parameters:
dos- the OutputStream- Throws:
Exception- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshalin interfaceMarshaller- Overrides:
unmarshalin 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:
marshalin interfaceMarshaller- Overrides:
marshalin 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:
unmarshalin interfaceMarshaller- Overrides:
unmarshalin 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:
equalsin classSyntheticEnvironmentFamilyPdu
-
equalsImpl
Description copied from class:PduCompare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Overrides:
equalsImplin classSyntheticEnvironmentFamilyPdu- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toStringin classSyntheticEnvironmentFamilyPdu
-
hashCode
-