Package edu.nps.moves.dis7.pdus
Class Pdu
java.lang.Object
edu.nps.moves.dis7.pdus.Pdu
- All Implemented Interfaces:
Marshaller,Serializable
- Direct Known Subclasses:
LiveEntityFamilyPdu,PduBase
Base class of PduBase and LiveEntityPdu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteExercise ID provides a unique identifierprotected shortLength, in bytes, of the PDUstatic final StringThe name of this PDU typeprotected DisPduTypeType of pdu, unique for each PDU class uid 4protected DISProtocolFamilyvalue that refers to the protocol family, eg SimulationManagement, et uid 5protected DISProtocolVersionThe version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2012 uid 3protected intTimestamp value, int representing number of 1.675 microseconds as interval past hour -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate deep copy of current object using PduFactory.booleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectbyteGetter forexerciseIDshortGetter forlengthintReturns size of this serialized (marshalled) object in bytesGetter forpduTypeGetter forprotocolFamilyGetter forprotocolVersionintGetter fortimestampWarning: this method gets a DIS bit patterndoubleUtility getter fortimestampconverting integer timestamp at 2^31 - 1 units past top of hour to double (or float)inthashCode()booleanWhether this instance is an AcknowledgeRPdubooleanWhether this instance is an ActionRequestPdubooleanWhether this instance is an ActionRequestRPdubooleanWhether this instance is an ActionResponsePdubooleanWhether this instance is an ActionResponseRPdubooleanWhether this instance is an AggregateStatePdubooleanWhether this instance is an AppearancePdubooleanWhether this instance is an ArealObjectStatePdubooleanWhether this instance is an ArticulatedPartsPdubooleanWhether this instance is an AttributePdubooleanWhether this instance is an CollisionElasticPdubooleanWhether this instance is an CollisionPdubooleanWhether this instance is an CommentPdubooleanWhether this instance is an CommentRPdubooleanWhether this instance is an CreateEntityPdubooleanWhether this instance is an CreateEntityRPdubooleanWhether this instance is an DataPdubooleanWhether this instance is an DataQueryPdubooleanWhether this instance is an DataQueryRPdubooleanWhether this instance is an DataRPdubooleanWhether this instance is an DesignatorPdubooleanWhether this instance is an DetonationPdubooleanWhether this instance is an DirectedEnergyFirePdubooleanWhether this instance has a DistributedEmissionsRegenerationFamilyPdu superclassbooleanWhether this instance is an ElectromagneticEmissionPdubooleanWhether this instance is an EntityDamageStatusPdubooleanWhether this instance has an EntityInformationInteractionFamilyPdu superclassbooleanWhether this instance has an EntityManagementFamilyPdu superclassbooleanWhether this instance is an EntityStatePdubooleanWhether this instance is an EntityStateUpdatePdubooleanWhether this instance is an EnvironmentalProcessPdubooleanWhether this instance is an EventReportPdubooleanWhether this instance is an EventReportRPdubooleanWhether this instance is an FirePdubooleanWhether this instance is an GriddedDataPdubooleanisIFFPdu()Whether this instance is an IFFPdubooleanWhether this instance is an InformationOperationsActionPdubooleanWhether this instance has an InformationOperationsFamilyPdu superclassbooleanWhether this instance is an InformationOperationsReportPdubooleanWhether this instance is an IntercomControlPdubooleanWhether this instance is an IntercomSignalPdubooleanWhether this instance is an IsGroupOfPdubooleanWhether this instance is an IsPartOfPdubooleanWhether this instance is an LEDetonationPdubooleanWhether this instance is an LEFirePdubooleanWhether this instance is an LinearObjectStatePdubooleanWhether this instance is an LiveEntityDetonationPdubooleanWhether this instance is an LiveEntityFirePdubooleanWhether this instance has a LogisticsFamilyPdu superclassbooleanWhether this instance is an MinefieldDataPdubooleanWhether this instance has a MinefieldFamilyPdu superclassbooleanWhether this instance is an MinefieldQueryPdubooleanWhether this instance is an MinefieldResponseNACKPdubooleanWhether this instance is an MinefieldStatePdubooleanWhether this instance is an PointObjectStatePdubooleanWhether this instance has a RadioCommunicationsFamilyPdu superclassbooleanWhether this instance is an ReceiverPdubooleanWhether this instance is an RecordQueryRPdubooleanWhether this instance is an RecordRPdubooleanWhether this instance is a Reliable Pdu with guaranteed deliverybooleanWhether this instance is an RemoveEntityPdubooleanWhether this instance is an RemoveEntityRPdubooleanWhether this instance is an RepairCompletePdubooleanWhether this instance is an RepairResponsePdubooleanWhether this instance is an ResupplyCancelPdubooleanWhether this instance is an ResupplyOfferPdubooleanWhether this instance is an ResupplyReceivedPdubooleanWhether this instance is an SEESPdubooleanWhether this instance is an SetDataPdubooleanWhether this instance is an SetDataRPdubooleanWhether this instance is an SetRecordRPdubooleanWhether this instance is an SignalPdubooleanWhether this instance has a SimulationManagementFamilyPdu superclassbooleanWhether this instance has a SimulationManagementWithReliabilityFamilyPdu superclassbooleanWhether this instance is an StartResumePdubooleanWhether this instance is an StartResumeRPdubooleanWhether this instance is an StopFreezePdubooleanWhether this instance is an StopFreezeRPdubooleanWhether this instance is an SupplementalEmissionEntityStatePdubooleanWhether this instance has a SyntheticEnvironmentFamilyPdu superclassbooleanWhether this instance is an TransferOwnershipPdubooleanWhether this instance is an TransmitterPdubooleanWhether this instance is an TSPIPdubooleanWhether this instance is an UnderwaterAcousticPdubooleanWhether this instance has a WarfareFamilyPdu superclassmarshal()A convenience method for marshalling to a ByteBuffervoidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.booleanoccursAfter(Pdu pdu2) Whether or not timestamp for this Pdu occurs after timestamp as another Pdu.booleanoccursBefore(Pdu pdu2) Whether or not timestamp for this Pdu occurs before timestamp as another Pdu.booleanoccursSameTime(Pdu pdu2) Whether or not this Pdu occurs at same timestamp as another Pdu.setExerciseID(byte pExerciseID) Setter forexerciseIDsetExerciseID(int pExerciseID) Utility setter forexerciseIDsetLength(int pLength) Utility setter forlengthsetLength(short pLength) Setter forlengthsetPduType(DisPduType pPduType) Setter forpduTypesetProtocolFamily(DISProtocolFamily pProtocolFamily) Setter forprotocolFamilysetProtocolVersion(DISProtocolVersion pProtocolVersion) Setter forprotocolVersionsetTimestamp(int pTimestamp) Setter fortimestampWarning: this method sets a DIS bit patternsetTimestampSeconds(double newTimestamp) Utility setter fortimestampconverting double (or float) to Timestamp in seconds at 2^31 - 1 units past top of hourtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
NAME
-
protocolVersion
The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2012 uid 3 -
exerciseID
protected byte exerciseIDExercise ID provides a unique identifier -
pduType
Type of pdu, unique for each PDU class uid 4 -
protocolFamily
value that refers to the protocol family, eg SimulationManagement, et uid 5 -
timestamp
protected int timestampTimestamp value, int representing number of 1.675 microseconds as interval past hour -
length
protected short lengthLength, in bytes, of the PDU
-
-
Constructor Details
-
Pdu
public Pdu()Constructor creates and configures a new instance object
-
-
Method Details
-
isReliablePdu
public boolean isReliablePdu()Whether this instance is a Reliable Pdu with guaranteed delivery- Returns:
- whether reliable
-
isDistributedEmissionsRegenerationFamilyPdu
public boolean isDistributedEmissionsRegenerationFamilyPdu()Whether this instance has a DistributedEmissionsRegenerationFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isEntityInformationInteractionFamilyPdu
public boolean isEntityInformationInteractionFamilyPdu()Whether this instance has an EntityInformationInteractionFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isEntityManagementFamilyPdu
public boolean isEntityManagementFamilyPdu()Whether this instance has an EntityManagementFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isInformationOperationsFamilyPdu
public boolean isInformationOperationsFamilyPdu()Whether this instance has an InformationOperationsFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isLogisticsFamilyPdu
public boolean isLogisticsFamilyPdu()Whether this instance has a LogisticsFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isMinefieldFamilyPdu
public boolean isMinefieldFamilyPdu()Whether this instance has a MinefieldFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isRadioCommunicationsFamilyPdu
public boolean isRadioCommunicationsFamilyPdu()Whether this instance has a RadioCommunicationsFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isSimulationManagementFamilyPdu
public boolean isSimulationManagementFamilyPdu()Whether this instance has a SimulationManagementFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isSimulationManagementWithReliabilityFamilyPdu
public boolean isSimulationManagementWithReliabilityFamilyPdu()Whether this instance has a SimulationManagementWithReliabilityFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isSyntheticEnvironmentFamilyPdu
public boolean isSyntheticEnvironmentFamilyPdu()Whether this instance has a SyntheticEnvironmentFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isWarfareFamilyPdu
public boolean isWarfareFamilyPdu()Whether this instance has a WarfareFamilyPdu superclass- Returns:
- whether this supertype is inherited
-
isAcknowledgeRPdu
public boolean isAcknowledgeRPdu()Whether this instance is an AcknowledgeRPdu- Returns:
- whether this type of Pdu
-
isActionRequestPdu
public boolean isActionRequestPdu()Whether this instance is an ActionRequestPdu- Returns:
- whether this type of Pdu
-
isActionRequestRPdu
public boolean isActionRequestRPdu()Whether this instance is an ActionRequestRPdu- Returns:
- whether this type of Pdu
-
isActionResponsePdu
public boolean isActionResponsePdu()Whether this instance is an ActionResponsePdu- Returns:
- whether this type of Pdu
-
isActionResponseRPdu
public boolean isActionResponseRPdu()Whether this instance is an ActionResponseRPdu- Returns:
- whether this type of Pdu
-
isAggregateStatePdu
public boolean isAggregateStatePdu()Whether this instance is an AggregateStatePdu- Returns:
- whether this type of Pdu
-
isAppearancePdu
public boolean isAppearancePdu()Whether this instance is an AppearancePdu- Returns:
- whether this type of Pdu
-
isArealObjectStatePdu
public boolean isArealObjectStatePdu()Whether this instance is an ArealObjectStatePdu- Returns:
- whether this type of Pdu
-
isArticulatedPartsPdu
public boolean isArticulatedPartsPdu()Whether this instance is an ArticulatedPartsPdu- Returns:
- whether this type of Pdu
-
isAttributePdu
public boolean isAttributePdu()Whether this instance is an AttributePdu- Returns:
- whether this type of Pdu
-
isCollisionElasticPdu
public boolean isCollisionElasticPdu()Whether this instance is an CollisionElasticPdu- Returns:
- whether this type of Pdu
-
isCollisionPdu
public boolean isCollisionPdu()Whether this instance is an CollisionPdu- Returns:
- whether this type of Pdu
-
isCommentPdu
public boolean isCommentPdu()Whether this instance is an CommentPdu- Returns:
- whether this type of Pdu
-
isCommentRPdu
public boolean isCommentRPdu()Whether this instance is an CommentRPdu- Returns:
- whether this type of Pdu
-
isCreateEntityPdu
public boolean isCreateEntityPdu()Whether this instance is an CreateEntityPdu- Returns:
- whether this type of Pdu
-
isCreateEntityRPdu
public boolean isCreateEntityRPdu()Whether this instance is an CreateEntityRPdu- Returns:
- whether this type of Pdu
-
isDataPdu
public boolean isDataPdu()Whether this instance is an DataPdu- Returns:
- whether this type of Pdu
-
isDataQueryPdu
public boolean isDataQueryPdu()Whether this instance is an DataQueryPdu- Returns:
- whether this type of Pdu
-
isDataQueryRPdu
public boolean isDataQueryRPdu()Whether this instance is an DataQueryRPdu- Returns:
- whether this type of Pdu
-
isDataRPdu
public boolean isDataRPdu()Whether this instance is an DataRPdu- Returns:
- whether this type of Pdu
-
isDesignatorPdu
public boolean isDesignatorPdu()Whether this instance is an DesignatorPdu- Returns:
- whether this type of Pdu
-
isDetonationPdu
public boolean isDetonationPdu()Whether this instance is an DetonationPdu- Returns:
- whether this type of Pdu
-
isDirectedEnergyFirePdu
public boolean isDirectedEnergyFirePdu()Whether this instance is an DirectedEnergyFirePdu- Returns:
- whether this type of Pdu
-
isElectromagneticEmissionPdu
public boolean isElectromagneticEmissionPdu()Whether this instance is an ElectromagneticEmissionPdu- Returns:
- whether this type of Pdu
-
isEntityDamageStatusPdu
public boolean isEntityDamageStatusPdu()Whether this instance is an EntityDamageStatusPdu- Returns:
- whether this type of Pdu
-
isEntityStatePdu
public boolean isEntityStatePdu()Whether this instance is an EntityStatePdu- Returns:
- whether this type of Pdu
-
isEntityStateUpdatePdu
public boolean isEntityStateUpdatePdu()Whether this instance is an EntityStateUpdatePdu- Returns:
- whether this type of Pdu
-
isEnvironmentalProcessPdu
public boolean isEnvironmentalProcessPdu()Whether this instance is an EnvironmentalProcessPdu- Returns:
- whether this type of Pdu
-
isEventReportPdu
public boolean isEventReportPdu()Whether this instance is an EventReportPdu- Returns:
- whether this type of Pdu
-
isEventReportRPdu
public boolean isEventReportRPdu()Whether this instance is an EventReportRPdu- Returns:
- whether this type of Pdu
-
isFirePdu
public boolean isFirePdu()Whether this instance is an FirePdu- Returns:
- whether this type of Pdu
-
isGriddedDataPdu
public boolean isGriddedDataPdu()Whether this instance is an GriddedDataPdu- Returns:
- whether this type of Pdu
-
isIFFPdu
public boolean isIFFPdu()Whether this instance is an IFFPdu- Returns:
- whether this type of Pdu
-
isInformationOperationsActionPdu
public boolean isInformationOperationsActionPdu()Whether this instance is an InformationOperationsActionPdu- Returns:
- whether this type of Pdu
-
isInformationOperationsReportPdu
public boolean isInformationOperationsReportPdu()Whether this instance is an InformationOperationsReportPdu- Returns:
- whether this type of Pdu
-
isIntercomControlPdu
public boolean isIntercomControlPdu()Whether this instance is an IntercomControlPdu- Returns:
- whether this type of Pdu
-
isIntercomSignalPdu
public boolean isIntercomSignalPdu()Whether this instance is an IntercomSignalPdu- Returns:
- whether this type of Pdu
-
isIsGroupOfPdu
public boolean isIsGroupOfPdu()Whether this instance is an IsGroupOfPdu- Returns:
- whether this type of Pdu
-
isIsPartOfPdu
public boolean isIsPartOfPdu()Whether this instance is an IsPartOfPdu- Returns:
- whether this type of Pdu
-
isLEDetonationPdu
public boolean isLEDetonationPdu()Whether this instance is an LEDetonationPdu- Returns:
- whether this type of Pdu
-
isLEFirePdu
public boolean isLEFirePdu()Whether this instance is an LEFirePdu- Returns:
- whether this type of Pdu
-
isLinearObjectStatePdu
public boolean isLinearObjectStatePdu()Whether this instance is an LinearObjectStatePdu- Returns:
- whether this type of Pdu
-
isLiveEntityDetonationPdu
public boolean isLiveEntityDetonationPdu()Whether this instance is an LiveEntityDetonationPdu- Returns:
- whether this type of Pdu
-
isLiveEntityFirePdu
public boolean isLiveEntityFirePdu()Whether this instance is an LiveEntityFirePdu- Returns:
- whether this type of Pdu
-
isMinefieldDataPdu
public boolean isMinefieldDataPdu()Whether this instance is an MinefieldDataPdu- Returns:
- whether this type of Pdu
-
isMinefieldQueryPdu
public boolean isMinefieldQueryPdu()Whether this instance is an MinefieldQueryPdu- Returns:
- whether this type of Pdu
-
isMinefieldResponseNACKPdu
public boolean isMinefieldResponseNACKPdu()Whether this instance is an MinefieldResponseNACKPdu- Returns:
- whether this type of Pdu
-
isMinefieldStatePdu
public boolean isMinefieldStatePdu()Whether this instance is an MinefieldStatePdu- Returns:
- whether this type of Pdu
-
isPointObjectStatePdu
public boolean isPointObjectStatePdu()Whether this instance is an PointObjectStatePdu- Returns:
- whether this type of Pdu
-
isReceiverPdu
public boolean isReceiverPdu()Whether this instance is an ReceiverPdu- Returns:
- whether this type of Pdu
-
isRecordQueryRPdu
public boolean isRecordQueryRPdu()Whether this instance is an RecordQueryRPdu- Returns:
- whether this type of Pdu
-
isRecordRPdu
public boolean isRecordRPdu()Whether this instance is an RecordRPdu- Returns:
- whether this type of Pdu
-
isRemoveEntityPdu
public boolean isRemoveEntityPdu()Whether this instance is an RemoveEntityPdu- Returns:
- whether this type of Pdu
-
isRemoveEntityRPdu
public boolean isRemoveEntityRPdu()Whether this instance is an RemoveEntityRPdu- Returns:
- whether this type of Pdu
-
isRepairCompletePdu
public boolean isRepairCompletePdu()Whether this instance is an RepairCompletePdu- Returns:
- whether this type of Pdu
-
isRepairResponsePdu
public boolean isRepairResponsePdu()Whether this instance is an RepairResponsePdu- Returns:
- whether this type of Pdu
-
isResupplyCancelPdu
public boolean isResupplyCancelPdu()Whether this instance is an ResupplyCancelPdu- Returns:
- whether this type of Pdu
-
isResupplyOfferPdu
public boolean isResupplyOfferPdu()Whether this instance is an ResupplyOfferPdu- Returns:
- whether this type of Pdu
-
isResupplyReceivedPdu
public boolean isResupplyReceivedPdu()Whether this instance is an ResupplyReceivedPdu- Returns:
- whether this type of Pdu
-
isSEESPdu
public boolean isSEESPdu()Whether this instance is an SEESPdu- Returns:
- whether this type of Pdu
-
isSetDataPdu
public boolean isSetDataPdu()Whether this instance is an SetDataPdu- Returns:
- whether this type of Pdu
-
isSetDataRPdu
public boolean isSetDataRPdu()Whether this instance is an SetDataRPdu- Returns:
- whether this type of Pdu
-
isSetRecordRPdu
public boolean isSetRecordRPdu()Whether this instance is an SetRecordRPdu- Returns:
- whether this type of Pdu
-
isSignalPdu
public boolean isSignalPdu()Whether this instance is an SignalPdu- Returns:
- whether this type of Pdu
-
isStartResumePdu
public boolean isStartResumePdu()Whether this instance is an StartResumePdu- Returns:
- whether this type of Pdu
-
isStartResumeRPdu
public boolean isStartResumeRPdu()Whether this instance is an StartResumeRPdu- Returns:
- whether this type of Pdu
-
isStopFreezePdu
public boolean isStopFreezePdu()Whether this instance is an StopFreezePdu- Returns:
- whether this type of Pdu
-
isStopFreezeRPdu
public boolean isStopFreezeRPdu()Whether this instance is an StopFreezeRPdu- Returns:
- whether this type of Pdu
-
isSupplementalEmissionEntityStatePdu
public boolean isSupplementalEmissionEntityStatePdu()Whether this instance is an SupplementalEmissionEntityStatePdu- Returns:
- whether this type of Pdu
-
isTSPIPdu
public boolean isTSPIPdu()Whether this instance is an TSPIPdu- Returns:
- whether this type of Pdu
-
isTransferOwnershipPdu
public boolean isTransferOwnershipPdu()Whether this instance is an TransferOwnershipPdu- Returns:
- whether this type of Pdu
-
isTransmitterPdu
public boolean isTransmitterPdu()Whether this instance is an TransmitterPdu- Returns:
- whether this type of Pdu
-
isUnderwaterAcousticPdu
public boolean isUnderwaterAcousticPdu()Whether this instance is an UnderwaterAcousticPdu- Returns:
- whether this type of Pdu
-
copyByPduFactory
Create deep copy of current object using PduFactory.- Returns:
- deep copy of PDU
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Specified by:
getMarshalledSizein interfaceMarshaller- Returns:
- serialized size in bytes
- See Also:
-
setProtocolVersion
Setter forprotocolVersion- Parameters:
pProtocolVersion- new value of interest- Returns:
- same object to permit progressive setters
-
getProtocolVersion
Getter forprotocolVersion- Returns:
- value of interest
-
setExerciseID
Setter forexerciseID- Parameters:
pExerciseID- new value of interest- Returns:
- same object to permit progressive setters
-
setExerciseID
Utility setter forexerciseID- Parameters:
pExerciseID- new value of interest- Returns:
- same object to permit progressive setters
-
getExerciseID
-
setPduType
Setter forpduType- Parameters:
pPduType- new value of interest- Returns:
- same object to permit progressive setters
-
getPduType
-
setProtocolFamily
Setter forprotocolFamily- Parameters:
pProtocolFamily- new value of interest- Returns:
- same object to permit progressive setters
-
getProtocolFamily
-
setTimestamp
-
getTimestamp
public int getTimestamp()Getter fortimestampWarning: this method gets a DIS bit pattern- Returns:
- value of interest
- See Also:
-
setLength
-
setLength
-
getLength
-
marshal
Serializes an object to a DataOutputStream.- Specified by:
marshalin interfaceMarshaller- Parameters:
dos- the OutputStream- Throws:
Exception- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshalin interfaceMarshaller- 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- 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- 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:
-
marshal
A convenience method for marshalling to a ByteBuffer -
equals
-
equalsImpl
Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-
setTimestampSeconds
-
getTimestampSeconds
public double getTimestampSeconds()Utility getter fortimestampconverting integer timestamp at 2^31 - 1 units past top of hour to double (or float)- Returns:
- fractional timestamp past hour
- See Also:
-
occursAfter
Whether or not timestamp for this Pdu occurs after timestamp as another Pdu.- Parameters:
pdu2- second Pdu for comparison- Returns:
- whether timestamp for this Pdu occurs later
-
occursBefore
Whether or not timestamp for this Pdu occurs before timestamp as another Pdu.- Parameters:
pdu2- second Pdu for comparison- Returns:
- whether timestamp for this Pdu occurs earlier
-
occursSameTime
Whether or not this Pdu occurs at same timestamp as another Pdu.- Parameters:
pdu2- second Pdu for comparison- Returns:
- whether timestamps are identical for both Pdus
-