|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicMessage
Interface any type of message the InputOutputHandler
shall be
capable of transmitting must implement.
Method Summary | |
---|---|
byte[] |
getByteMessage()
Must return the byte representation of this message. |
User |
getChannel()
Must return a reference on the channel/user this message belongs to. |
int |
getChannelID()
Must return an identifier for the channel/user this message belongs to. |
int |
getMessageID()
Must return an identifier for this message. |
int |
getNextMixChannelID()
Must return an identifier for the channel/user this message belongs to, used by the next mix of the cascade. |
long |
getTimeOfReceival()
Must return the point of time (timestamp), this message was received. |
void |
setByteMessage(byte[] byteMessage)
Sets the byte representation of this message to the bypassed array. |
void |
setMessageID(int newIdentifier)
Must set this message's identifier to the bypassed value. |
void |
setPayloadRange(int startIndexOfPayload,
int payloadLength)
Only a certain part of the message array must be transmitted to the cascade's next mix (Some parts (e. g. the session key for the corresponding mix) are not supposed to be sent). |
void |
setTimeOfReceival(long newTimeOfReceival)
Must set the point of time (timestamp), this message was received to the bypassed value. |
Method Detail |
---|
int getMessageID()
void setMessageID(int newIdentifier)
newIdentifier
- Value this message's identifier shall be set to.int getChannelID()
int getNextMixChannelID()
User getChannel()
void setPayloadRange(int startIndexOfPayload, int payloadLength)
This method must define the offset and length of the part to be transmitted.
startIndexOfPayload
- Offset of the part to be transmitted.payloadLength
- Length of the part to be transmitted.long getTimeOfReceival()
void setTimeOfReceival(long newTimeOfReceival)
newTimeOfReceival
- Point of time (timestamp), this message was
received.byte[] getByteMessage()
void setByteMessage(byte[] byteMessage)
byteMessage
- New content for this message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |