public class IPPacket extends Message
DEFAULT_MESSAGE_LENGTH
Constructor and Description |
---|
IPPacket(long length,
int sourceId,
int destId,
int group,
int type) |
Modifier and Type | Method and Description |
---|---|
int |
getDestinationId() |
int |
getGroupId() |
int |
getSourceId() |
double |
getTag() |
int |
getTypeId() |
void |
printContent(java.io.PrintWriter out) |
void |
setDestinationId(int destinationId) |
void |
setGroupId(int groupId) |
void |
setSourceId(int sourceId) |
void |
setTag(double tag) |
void |
setTypeId(int typeId) |
getLength, printHeader, printMessage, setLength
public IPPacket(long length, int sourceId, int destId, int group, int type)
public void printContent(java.io.PrintWriter out)
printContent
in class Message
public int getSourceId()
public void setSourceId(int sourceId)
public int getDestinationId()
public void setDestinationId(int destinationId)
public int getGroupId()
public void setGroupId(int groupId)
public double getTag()
public void setTag(double tag)
public int getTypeId()
public void setTypeId(int typeId)