Package edu.nps.moves.dis7.pdus
Interface Marshaller
- All Known Subinterfaces:
EntityCapabilities
- All Known Implementing Classes:
AcknowledgePdu
,AcknowledgeReliablePdu
,AcknowledgeRPdu
,ActionRequestPdu
,ActionRequestReliablePdu
,ActionRequestRPdu
,ActionResponsePdu
,ActionResponseReliablePdu
,ActionResponseRPdu
,AggregateStatePdu
,AirPlatformAppearance
,AirPlatformCapabilities
,AppearancePdu
,ArealObjectAppearanceMinefield
,ArealObjectStatePdu
,ArticulatedPartsPdu
,AttributePdu
,CollisionElasticPdu
,CollisionPdu
,CommentPdu
,CommentReliablePdu
,CommentRPdu
,CreateEntityPdu
,CreateEntityReliablePdu
,CreateEntityRPdu
,CulturalFeatureAppearance
,CulturalFeatureCapabilities
,DataPdu
,DataQueryPdu
,DataQueryReliablePdu
,DataQueryRPdu
,DataReliablePdu
,DataRPdu
,DEDamageDescriptionComponentVisualDamageStatus
,DEFireFlags
,DesignatorPdu
,DetonationPdu
,DirectedEnergyFirePdu
,DisBitSet
,DistributedEmissionsRegenerationFamilyPdu
,ElectromagneticEmissionPdu
,EntityDamageStatusPdu
,EntityInformationInteractionFamilyPdu
,EntityManagementFamilyPdu
,EntityStatePdu
,EntityStateUpdatePdu
,EnvironmentalAppearance
,EnvironmentalCapabilities
,EnvironmentalProcessEnvironmentStatus
,EnvironmentalProcessPdu
,EventReportPdu
,EventReportReliablePdu
,EventReportRPdu
,ExpendableAppearance
,ExpendableCapabilities
,FirePdu
,GriddedDataPdu
,IdentificationFriendOrFoePdu
,IFFLayer2Pdu
,IFFPdu
,InformationOperationsActionPdu
,InformationOperationsFamilyPdu
,InformationOperationsReportPdu
,IntercomControlPdu
,IntercomSignalPdu
,IntercomSignalPduSpecialCase
,IsGroupOfPdu
,IsPartOfPdu
,LandPlatformAppearance
,LandPlatformCapabilities
,LEDetonationPdu
,LEFirePdu
,LifeFormsAppearance
,LifeFormsCapabilities
,LinearObjectAppearanceBreach
,LinearObjectAppearanceExhaustSmoke
,LinearObjectAppearanceMinefieldLaneMarker
,LinearObjectAppearanceSpeedBump
,LinearObjectAppearanceTankDitchAndConcertinaWire
,LinearObjectAppearanceWire
,LinearObjectStatePdu
,LiveEntityDetonationPdu
,LiveEntityFamilyPdu
,LiveEntityFirePdu
,LogisticsFamilyPdu
,MinefieldDataFusing
,MinefieldDataPaintScheme
,MinefieldDataPdu
,MinefieldFamilyPdu
,MinefieldQueryPdu
,MinefieldResponseNACKPdu
,MinefieldStateAppearanceBitMap
,MinefieldStatePdu
,MunitionAppearance
,MunitionCapabilities
,NonHumanLifeFormsAppearance
,ObjectStateAppearanceGeneral
,ObjectStateModificationArealObject
,ObjectStateModificationLinearObject
,ObjectStateModificationPointObject
,Pdu
,PduBase
,PointObjectAppearanceAirGroundBurst
,PointObjectAppearanceBuildingRubble
,PointObjectAppearanceBuildingStructure
,PointObjectAppearanceCrater
,PointObjectAppearanceDisturbedEarthRoad
,PointObjectAppearanceLogCribAbatisEtAl
,PointObjectAppearancePothole
,PointObjectAppearanceRibbonBridge
,PointObjectAppearanceStationaryBridgeAndAVLB
,PointObjectAppearanceTree
,PointObjectStatePdu
,RadioAppearance
,RadioCapabilities
,RadioCommunicationsFamilyPdu
,ReceiverPdu
,RecordQueryReliablePdu
,RecordQueryRPdu
,RecordReliablePdu
,RecordRPdu
,RemoveEntityPdu
,RemoveEntityReliablePdu
,RemoveEntityRPdu
,RepairCompletePdu
,RepairResponsePdu
,ResupplyCancelPdu
,ResupplyOfferPdu
,ResupplyReceivedPdu
,SEESPdu
,SensorEmitterAppearance
,SensorEmitterCapabilities
,ServiceRequestPdu
,SetDataPdu
,SetDataReliablePdu
,SetDataRPdu
,SetRecordReliablePdu
,SetRecordRPdu
,SignalPdu
,SignalPduSpecialCase
,SimulationManagementFamilyPdu
,SimulationManagementWithReliabilityFamilyPdu
,SpacePlatformAppearance
,SpacePlatformCapabilities
,StartResumePdu
,StartResumeReliablePdu
,StartResumeRPdu
,StopFreezeFrozenBehavior
,StopFreezePdu
,StopFreezeReliablePdu
,StopFreezeRPdu
,SubsurfacePlatformAppearance
,SubsurfacePlatformCapabilities
,SupplementalEmissionEntityStatePdu
,SupplyAppearance
,SupplyCapabilities
,SurfacePlatformAppearance
,SurfacePlatformCapabilities
,SyntheticEnvironmentFamilyPdu
,TimeSpacePositionInformationPdu
,TransferOwnershipPdu
,TransmitterPdu
,TSPIPdu
,UAPropulsionPlantConfiguration
,UnderwaterAcousticPdu
,WarfareFamilyPdu
public interface Marshaller
Marshaller performs serialization.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns size of this serialized (marshalled) object in bytesvoid
marshal(DataOutputStream dos)
void
marshal(ByteBuffer byteBuffer)
Packs a Pdu into the ByteBuffer.int
unmarshal(DataInputStream dis)
int
unmarshal(ByteBuffer byteBuffer)
Unpacks a Pdu from the underlying data.
-
Method Details
-
getMarshalledSize
int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
- https://en.wikipedia.org/wiki/Marshalling_(computer_science)
-
marshal
- Parameters:
dos
- the output stream to marshal to- Throws:
Exception
- error during marshaling
-
unmarshal
- Parameters:
dis
- the input stream to unmarshal from- Returns:
- the size of the marshalled PDU in bytes
- Throws:
Exception
- error during unmarshalling
-
marshal
Packs a Pdu into the ByteBuffer.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
Exception
- error during marshaling- See Also:
ByteBuffer
-
unmarshal
Unpacks a Pdu from the underlying data.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- the size of the PDU
- Throws:
Exception
- error during unmarshalling- See Also:
ByteBuffer
-