Package edu.nps.moves.dis7
Class IntercomControlPdu
java.lang.Object
edu.nps.moves.dis7.Pdu
edu.nps.moves.dis7.PduBase
edu.nps.moves.dis7.RadioCommunicationsFamilyPdu
edu.nps.moves.dis7.IntercomControlPdu
- All Implemented Interfaces:
edu.nps.moves.dis7.Marshaller
,java.io.Serializable
public class IntercomControlPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
5.8.7 Communicates the state of a particular intercom device, request an action of another intercom device, or respond to an action request.
IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation—Application Protocols
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected IntercomControlCommand
command
detailed type requested.protected byte
communicationsChannelType
control typeprotected IntercomControlControlType
controlType
control type uid 180protected java.util.List<IntercomCommunicationsParameters>
intercomParameters
protected int
intercomParametersLength
number of intercom parametersprotected short
masterChannelID
protected short
masterIntercomNumber
specific intercom device that has created this intercom channelprotected EntityID
masterIntercomReferenceID
eid of the entity that has created this intercom channel, same comments as sourceEntityIdprotected EntityID
sourceEntityID
Source entity ID, this can also be ObjectIdentifier or UnattachedIdentifierprotected short
sourceIntercomNumber
The specific intercom device being simulated within an entity.protected byte
sourceLineID
Line number to which the intercom control refersprotected IntercomControlTransmitLineState
transmitLineState
current transmit state of the line uid 183protected byte
transmitPriority
priority of this message relative to transmissons from other intercom devicesFields inherited from class edu.nps.moves.dis7.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
-
Constructor Summary
Constructors Constructor Description IntercomControlPdu()
Constructor -
Method Summary
Methods inherited from class edu.nps.moves.dis7.PduBase
getPadding, getPduStatus, setPadding, setPduStatus
Methods inherited from class edu.nps.moves.dis7.Pdu
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
-
Field Details
-
controlType
control type uid 180 -
communicationsChannelType
protected byte communicationsChannelTypecontrol type -
sourceEntityID
Source entity ID, this can also be ObjectIdentifier or UnattachedIdentifier -
sourceIntercomNumber
protected short sourceIntercomNumberThe specific intercom device being simulated within an entity. -
sourceLineID
protected byte sourceLineIDLine number to which the intercom control refers -
transmitPriority
protected byte transmitPrioritypriority of this message relative to transmissons from other intercom devices -
transmitLineState
current transmit state of the line uid 183 -
command
detailed type requested. uid 182 -
masterIntercomReferenceID
eid of the entity that has created this intercom channel, same comments as sourceEntityId -
masterIntercomNumber
protected short masterIntercomNumberspecific intercom device that has created this intercom channel -
masterChannelID
protected short masterChannelID -
intercomParametersLength
protected int intercomParametersLengthnumber of intercom parameters -
intercomParameters
-
-
Constructor Details
-
IntercomControlPdu
public IntercomControlPdu()Constructor
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns the size of this serialized object in bytes- Specified by:
getMarshalledSize
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
getMarshalledSize
in classRadioCommunicationsFamilyPdu
-
setControlType
Setter forcontrolType
-
getControlType
Getter forcontrolType
-
setCommunicationsChannelType
Setter forcommunicationsChannelType
-
getCommunicationsChannelType
public byte getCommunicationsChannelType()Getter forcommunicationsChannelType
-
setSourceEntityID
Setter forsourceEntityID
-
getSourceEntityID
Getter forsourceEntityID
-
setSourceIntercomNumber
Setter forsourceIntercomNumber
-
getSourceIntercomNumber
public short getSourceIntercomNumber()Getter forsourceIntercomNumber
-
setSourceLineID
Setter forsourceLineID
-
getSourceLineID
public byte getSourceLineID()Getter forsourceLineID
-
setTransmitPriority
Setter fortransmitPriority
-
getTransmitPriority
public byte getTransmitPriority()Getter fortransmitPriority
-
setTransmitLineState
public IntercomControlPdu setTransmitLineState(IntercomControlTransmitLineState pTransmitLineState)Setter fortransmitLineState
-
getTransmitLineState
Getter fortransmitLineState
-
setCommand
Setter forcommand
-
getCommand
Getter forcommand
-
setMasterIntercomReferenceID
Setter formasterIntercomReferenceID
-
getMasterIntercomReferenceID
Getter formasterIntercomReferenceID
-
setMasterIntercomNumber
Setter formasterIntercomNumber
-
getMasterIntercomNumber
public short getMasterIntercomNumber()Getter formasterIntercomNumber
-
setMasterChannelID
Setter formasterChannelID
-
getMasterChannelID
public short getMasterChannelID()Getter formasterChannelID
-
setIntercomParameters
public IntercomControlPdu setIntercomParameters(java.util.List<IntercomCommunicationsParameters> pIntercomParameters)Setter forintercomParameters
-
getIntercomParameters
Getter forintercomParameters
-
marshal
public void marshal(java.io.DataOutputStream dos) throws java.lang.ExceptionSerializes an object to a DataOutputStream.- Specified by:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in classRadioCommunicationsFamilyPdu
- Parameters:
dos
- the OutputStream- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataOutputStream
-
unmarshal
public int unmarshal(java.io.DataInputStream dis) throws java.lang.ExceptionUnserializes an object from a DataInputStream.- Specified by:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in classRadioCommunicationsFamilyPdu
- Parameters:
dis
- the InputStream- Returns:
- unmarshalled size
- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataInputStream
-
marshal
public void marshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionPacks an object into the ByteBuffer.- Specified by:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in classRadioCommunicationsFamilyPdu
- Parameters:
buff
- The ByteBuffer at the position to begin writing- Throws:
java.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
unmarshal
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionUnpacks a Pdu from the underlying data.- Specified by:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in classRadioCommunicationsFamilyPdu
- Parameters:
buff
- The ByteBuffer at the position to begin reading- Returns:
- marshalled size
- Throws:
java.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classRadioCommunicationsFamilyPdu
-
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, forthis
and the supplied object- Overrides:
equalsImpl
in classRadioCommunicationsFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
public java.lang.String toString()- Overrides:
toString
in classRadioCommunicationsFamilyPdu
-