rtpi
Class RtpiStateQuery

java.lang.Object
  |
  +--rtpi.RtpiData
        |
        +--rtpi.RtpiStateQuery

public class RtpiStateQuery
extends RtpiData

This class represents rtpi state query ADUs that are sent or received. Do not try to put any data in this ADU or read data from the ADU. State queries do not carry payload data!

Author:
Martin Mauve.

Constructor Summary
RtpiStateQuery(int pID, long subID, int seqNo, int pType, int pri, long ts, int pls)
          Create a new ADU for the transmission over the network.
 
Method Summary
 java.io.ByteArrayInputStream getInputStream()
          Don't call this method!
 java.io.OutputStream getOutputStream()
          Don't call this method!
 void outputComplete()
          Don't call this method!
 
Methods inherited from class rtpi.RtpiData
getParticipantID, getPayloadType, getPriority, getProfileInformation, getSequenceNumber, getSubcomponentID, getTimestamp, setProfileInformation, setRedundancy, setRedundancyTransmissionInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtpiStateQuery

public RtpiStateQuery(int pID,
                      long subID,
                      int seqNo,
                      int pType,
                      int pri,
                      long ts,
                      int pls)
               throws IllegalValueException
Create a new ADU for the transmission over the network.
Parameters:
pID - The ID of the local participant.
subID - The ID of the affected subcomponent.
seqNo - The sequence number of the ADU.
pType - The payload type of the ADU.
pri - The priority of this ADU.
ts - The timestamp of the ADU. The value will be automatically clipped to a 32 bit value;
pls - The amount of bytes required for the combined RTP/I packet header (rtpi.packets.RtpiDataPacket.HEADER_SIZE) and the reliability header (depending on the reliability mechanism) used. If this value is not caluclated correctly then the packet will have to be copied one additional time before it can be sent. This decreases efficiency but should still work. There is a utility function Rtpi.getCombinedHeaderSize which returns this value.
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Don't call this method!
Overrides:
getOutputStream in class RtpiData

outputComplete

public void outputComplete()
Don't call this method!
Overrides:
outputComplete in class RtpiData

getInputStream

public java.io.ByteArrayInputStream getInputStream()
Don't call this method!
Overrides:
getInputStream in class RtpiData