|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
gr.uoa.di.madgik.commons.channel.events.ChannelStateEvent
gr.uoa.di.madgik.commons.channel.events.ChannelPayloadStateEvent
gr.uoa.di.madgik.commons.channel.events.BytePayloadChannelEvent
public class BytePayloadChannelEvent
Event containing payload that the sender wants to provide to listeners
| Constructor Summary | |
|---|---|
BytePayloadChannelEvent()
Instantiates a new byte payload channel event. |
|
BytePayloadChannelEvent(byte[] Value)
Instantiates a new byte payload channel event. |
|
| Method Summary | |
|---|---|
void |
Decode(byte[] payload)
Decodes the payload of the implementing object as it was returned by ISerializable.Encode() |
byte[] |
Encode()
Encodes the payload of the implementing object so that is can later be unmarshaled |
ChannelState.EventName |
GetEventName()
Gets the event name. |
java.lang.String |
GetSerializableClassName()
Gets the class name of the object being serialized. |
byte[] |
GetValue()
Retrieves the contained payload |
void |
SetValue(byte[] Value)
Sets the contained payload |
| Methods inherited from class gr.uoa.di.madgik.commons.channel.events.ChannelStateEvent |
|---|
GetEmitingNozzleID, GetEmitingNozzleIdentifierLeastSignificantBits, GetEmitingNozzleIdentifierMostSignificantBits, NotifyChange, SetEmitingNozzleIdentifierLeastSignificantBits, SetEmitingNozzleIdentifierMostSignificantBits |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BytePayloadChannelEvent()
public BytePayloadChannelEvent(byte[] Value)
Value - the payload the event contains| Method Detail |
|---|
public ChannelState.EventName GetEventName()
ChannelStateEvent
GetEventName in class ChannelStateEventpublic byte[] GetValue()
public void SetValue(byte[] Value)
Value - the payloadpublic java.lang.String GetSerializableClassName()
ISerializable
public void Decode(byte[] payload)
throws java.lang.Exception
ISerializableISerializable.Encode()
payload - the serialization
java.lang.Exception - the Serialization could not be performed
public byte[] Encode()
throws java.lang.Exception
ISerializable
java.lang.Exception - The serialization could not be performed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||