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 Summary
Fields 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 Summary
Constructors 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 Summary
All 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
-
type
protected byte type
The type of the message.
-
connectionid
protected java.lang.Integer connectionid
The id of the connection.
-
data
protected java.lang.Object data
The stream data.
-
sequencenumber
protected java.lang.Integer sequencenumber
The sequence number.
-
receiver
public IComponentIdentifier receiver
The reqceiver.
-
-
Constructor Detail
-
StreamPacket
public StreamPacket()
Create a new task.
-
StreamPacket
public StreamPacket(byte type, java.lang.Integer connectionid, java.lang.Object data, java.lang.Integer sequencenumber, IComponentIdentifier receiver)Create a new task.
-
StreamPacket
public StreamPacket(StreamPacket packet)
Create a new task.
-
-
Method Detail
-
getType
public byte getType()
Get the type.- Returns:
- the type
-
setType
public void setType(byte type)
Set the type.- Parameters:
type- The type to set
-
getData
public java.lang.Object getData()
Get the data.- Returns:
- the data
-
setData
public void setData(java.lang.Object data)
Set the data.- Parameters:
data- The data to set
-
getSequenceNumber
public java.lang.Integer getSequenceNumber()
Get the sequenceNumber.- Returns:
- the sequenceNumber
-
setSequenceNumber
public void setSequenceNumber(java.lang.Integer sequenceNumber)
Set the sequenceNumber.- Parameters:
sequenceNumber- The sequenceNumber to set
-
getConnectionId
public java.lang.Integer getConnectionId()
Get the connectionid.- Returns:
- the connectionid
-
setConnectionId
public void setConnectionId(java.lang.Integer connectionid)
Set the connectionid.- Parameters:
connectionid- The connectionid to set
-
-