Package jadex.bridge.component.streams
Class StreamPacket
- java.lang.Object
- 
- jadex.bridge.component.streams.StreamPacket
 
- 
 public class StreamPacket extends java.lang.ObjectData container for a streaming packet.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.IntegerconnectionidThe id of the connection.protected java.lang.ObjectdataThe stream data.IComponentIdentifierreceiverThe reqceiver.protected java.lang.IntegersequencenumberThe sequence number.protected bytetypeThe type of the message.
 - 
Constructor SummaryConstructors Constructor Description StreamPacket()Create a new task.StreamPacket(byte type, java.lang.Integer connectionid, java.lang.Object data, java.lang.Integer sequencenumber, IComponentIdentifier receiver)Create a new task.StreamPacket(StreamPacket packet)Create a new task.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetConnectionId()Get the connectionid.java.lang.ObjectgetData()Get the data.java.lang.IntegergetSequenceNumber()Get the sequenceNumber.bytegetType()Get the type.voidsetConnectionId(java.lang.Integer connectionid)Set the connectionid.voidsetData(java.lang.Object data)Set the data.voidsetSequenceNumber(java.lang.Integer sequenceNumber)Set the sequenceNumber.voidsetType(byte type)Set the type.
 
- 
- 
- 
Field Detail- 
typeprotected byte type The type of the message.
 - 
connectionidprotected java.lang.Integer connectionid The id of the connection.
 - 
dataprotected java.lang.Object data The stream data.
 - 
sequencenumberprotected java.lang.Integer sequencenumber The sequence number.
 - 
receiverpublic IComponentIdentifier receiver The reqceiver.
 
- 
 - 
Constructor Detail- 
StreamPacketpublic StreamPacket() Create a new task.
 - 
StreamPacketpublic StreamPacket(byte type, java.lang.Integer connectionid, java.lang.Object data, java.lang.Integer sequencenumber, IComponentIdentifier receiver)Create a new task.
 - 
StreamPacketpublic StreamPacket(StreamPacket packet) Create a new task.
 
- 
 - 
Method Detail- 
getTypepublic byte getType() Get the type.- Returns:
- the type
 
 - 
setTypepublic void setType(byte type) Set the type.- Parameters:
- type- The type to set
 
 - 
getDatapublic java.lang.Object getData() Get the data.- Returns:
- the data
 
 - 
setDatapublic void setData(java.lang.Object data) Set the data.- Parameters:
- data- The data to set
 
 - 
getSequenceNumberpublic java.lang.Integer getSequenceNumber() Get the sequenceNumber.- Returns:
- the sequenceNumber
 
 - 
setSequenceNumberpublic void setSequenceNumber(java.lang.Integer sequenceNumber) Set the sequenceNumber.- Parameters:
- sequenceNumber- The sequenceNumber to set
 
 - 
getConnectionIdpublic java.lang.Integer getConnectionId() Get the connectionid.- Returns:
- the connectionid
 
 - 
setConnectionIdpublic void setConnectionId(java.lang.Integer connectionid) Set the connectionid.- Parameters:
- connectionid- The connectionid to set
 
 
- 
 
-