|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.RadioCommunicationsFamilyPdu
edu.nps.moves.dismobile.IntercomControlPdu
public class IntercomControlPdu
Section 5.3.8.5. Detailed inofrmation about the state of an intercom device and the actions it is requestion of another intercom device, or the response to a requested action. Required manual intervention to fix the intercom parameters, which can be of varialbe length. UNFINSISHED Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
protected short |
command
detailed type requested. |
protected short |
communicationsChannelType
control type |
protected short |
controlType
control type |
protected java.util.List<IntercomCommunicationsParameters> |
intercomParameters
^^^This is wrong--the length of the data field is variable. |
protected long |
intercomParametersLength
number of intercom parameters |
protected int |
masterCommunicationsDeviceID
specific intercom device that has created this intercom channel |
protected EntityID |
masterEntityID
eid of the entity that has created this intercom channel. |
protected short |
sourceCommunicationsDeviceID
The specific intercom device being simulated within an entity. |
protected EntityID |
sourceEntityID
Source entity ID |
protected short |
sourceLineID
Line number to which the intercom control refers |
protected short |
transmitLineState
current transmit state of the line |
protected short |
transmitPriority
priority of this message relative to transmissons from other intercom devices |
Fields inherited from class edu.nps.moves.dismobile.RadioCommunicationsFamilyPdu |
---|
entityId, radioId |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
IntercomControlPdu()
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object |
short |
getCommand()
|
short |
getCommunicationsChannelType()
|
short |
getControlType()
|
java.util.List<IntercomCommunicationsParameters> |
getIntercomParameters()
|
long |
getIntercomParametersLength()
|
int |
getMarshalledSize()
|
int |
getMasterCommunicationsDeviceID()
|
EntityID |
getMasterEntityID()
|
short |
getSourceCommunicationsDeviceID()
|
EntityID |
getSourceEntityID()
|
short |
getSourceLineID()
|
short |
getTransmitLineState()
|
short |
getTransmitPriority()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setCommand(short pCommand)
|
void |
setCommunicationsChannelType(short pCommunicationsChannelType)
|
void |
setControlType(short pControlType)
|
void |
setIntercomParameters(java.util.List<IntercomCommunicationsParameters> pIntercomParameters)
|
void |
setIntercomParametersLength(long pIntercomParametersLength)
Note that setting this value will not change the marshalled value. |
void |
setMasterCommunicationsDeviceID(int pMasterCommunicationsDeviceID)
|
void |
setMasterEntityID(EntityID pMasterEntityID)
|
void |
setSourceCommunicationsDeviceID(short pSourceCommunicationsDeviceID)
|
void |
setSourceEntityID(EntityID pSourceEntityID)
|
void |
setSourceLineID(short pSourceLineID)
|
void |
setTransmitLineState(short pTransmitLineState)
|
void |
setTransmitPriority(short pTransmitPriority)
|
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class edu.nps.moves.dismobile.RadioCommunicationsFamilyPdu |
---|
getEntityId, getRadioId, setEntityId, setRadioId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected short controlType
protected short communicationsChannelType
protected EntityID sourceEntityID
protected short sourceCommunicationsDeviceID
protected short sourceLineID
protected short transmitPriority
protected short transmitLineState
protected short command
protected EntityID masterEntityID
protected int masterCommunicationsDeviceID
protected long intercomParametersLength
protected java.util.List<IntercomCommunicationsParameters> intercomParameters
Constructor Detail |
---|
public IntercomControlPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class RadioCommunicationsFamilyPdu
public void setControlType(short pControlType)
public short getControlType()
public void setCommunicationsChannelType(short pCommunicationsChannelType)
public short getCommunicationsChannelType()
public void setSourceEntityID(EntityID pSourceEntityID)
public EntityID getSourceEntityID()
public void setSourceCommunicationsDeviceID(short pSourceCommunicationsDeviceID)
public short getSourceCommunicationsDeviceID()
public void setSourceLineID(short pSourceLineID)
public short getSourceLineID()
public void setTransmitPriority(short pTransmitPriority)
public short getTransmitPriority()
public void setTransmitLineState(short pTransmitLineState)
public short getTransmitLineState()
public void setCommand(short pCommand)
public short getCommand()
public void setMasterEntityID(EntityID pMasterEntityID)
public EntityID getMasterEntityID()
public void setMasterCommunicationsDeviceID(int pMasterCommunicationsDeviceID)
public int getMasterCommunicationsDeviceID()
public long getIntercomParametersLength()
public void setIntercomParametersLength(long pIntercomParametersLength)
public void setIntercomParameters(java.util.List<IntercomCommunicationsParameters> pIntercomParameters)
public java.util.List<IntercomCommunicationsParameters> getIntercomParameters()
public void marshal(java.io.DataOutputStream dos)
marshal
in class RadioCommunicationsFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class RadioCommunicationsFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class RadioCommunicationsFamilyPdu
buff
- The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException
- if buff is too small
java.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class RadioCommunicationsFamilyPdu
buff
- The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class RadioCommunicationsFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied object
equalsImpl
in class RadioCommunicationsFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |