|
||||||||||
| 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
public abstract class ChannelStateEvent
Base class for every object that can be used to be registered by an Observer or send as Event. Event handling must follow well known guidelines. The most important of all as it could have a dramatic effect on the framework usage is the processing of a caught event. When an event is caught the processing to be performed should be kept minimal. Should a proxy for example catches an event and in the event handler communicates with a remote location this would mean that the whole framework will have to wait for this communication to happen.
| Constructor Summary | |
|---|---|
ChannelStateEvent()
|
|
| Method Summary | |
|---|---|
protected void |
DeserializeID(String Serialization)
Deserializes a UUID as returned from SerializeEmmitingNozzleID() to the respective least and most
significant bits |
String |
GetEmitingNozzleID()
Retrieves the emitting nozzle UUID of the event associated with it during initialization |
long |
GetEmitingNozzleIdentifierLeastSignificantBits()
Gets the emitting nozzle identifier least significant bits. |
long |
GetEmitingNozzleIdentifierMostSignificantBits()
Gets the emitting nozzle identifier most significant bits. |
abstract ChannelState.EventName |
GetEventName()
Gets the event name. |
void |
NotifyChange(ChannelStateEvent ChangeEvent)
Notify everyone that has registered for notifications to this object. |
protected String |
SerializeEmmitingNozzleID()
Transforms the id kept as two longs , the least and most significant bits of a UUID to a string |
void |
SetEmitingNozzleIdentifierLeastSignificantBits(long EmitingNozzleIdentifierLeastSignificantBits)
Sets the emitting nozzle identifier least significant bits. |
void |
SetEmitingNozzleIdentifierMostSignificantBits(long EmitingNozzleIdentifierMostSignificantBits)
Sets the emitting nozzle identifier most significant bits. |
| 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 |
| Methods inherited from interface gr.uoa.di.madgik.commons.channel.events.ISerializable |
|---|
Decode, Encode, GetSerializableClassName |
| Constructor Detail |
|---|
public ChannelStateEvent()
| Method Detail |
|---|
public void NotifyChange(ChannelStateEvent ChangeEvent)
ChangeEvent - The ChannelStateEvent carrying the update informationpublic abstract ChannelState.EventName GetEventName()
protected String SerializeEmmitingNozzleID()
protected void DeserializeID(String Serialization)
SerializeEmmitingNozzleID() to the respective least and most
significant bits
Serialization - The serialization of the idpublic long GetEmitingNozzleIdentifierLeastSignificantBits()
public long GetEmitingNozzleIdentifierMostSignificantBits()
public void SetEmitingNozzleIdentifierLeastSignificantBits(long EmitingNozzleIdentifierLeastSignificantBits)
EmitingNozzleIdentifierLeastSignificantBits - the emitting nozzle identifier least significant bitspublic void SetEmitingNozzleIdentifierMostSignificantBits(long EmitingNozzleIdentifierMostSignificantBits)
EmitingNozzleIdentifierMostSignificantBits - the emitting nozzle identifier most significant bitspublic String GetEmitingNozzleID()
SerializeEmmitingNozzleID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||