|
||||||||||
| 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. |
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 |
|---|
DeserializeID, GetEmitingNozzleID, GetEmitingNozzleIdentifierLeastSignificantBits, GetEmitingNozzleIdentifierMostSignificantBits, NotifyChange, SerializeEmmitingNozzleID, SetEmitingNozzleIdentifierLeastSignificantBits, SetEmitingNozzleIdentifierMostSignificantBits |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 String GetSerializableClassName()
ISerializable
public void Decode(byte[] payload)
throws Exception
ISerializableISerializable.Encode()
payload - the serialization
Exception - the Serialization could not be performed
public byte[] Encode()
throws Exception
ISerializable
Exception - The serialization could not be performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||