|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.event.AbstractEvent
public abstract class AbstractEvent
Base-class for IEvent instances that are marker events. A marker
event represents an arbitrary event and is not necessarily related to the
state of its IEventSource. Therefore marker events cannot be
coalesced and thus the equals(Object) and hashCode()
methods are final and perform the standard operation exposed by the
Object class.
| Constructor Summary | |
|---|---|
AbstractEvent()
Public constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone this. |
boolean |
equals(Object obj)
|
protected String |
getAdditionalToString()
Delegate method for subclasses to provide additional toString information. |
String |
getAddress()
Get the unique address for this. |
IDomain |
getDomain()
Get the domain attribute of this object. |
IEventFrameExecution |
getDrivingFrame()
Get the event frame execution that directly caused this event to occur. |
IEventFrameExecution |
getFrame()
Get the event frame of this event. |
String |
getIdentity()
Get the identification string for this entity. |
IEventSource |
getSource()
Get the event source that generated this event |
IEvent |
getTriggerEvent()
Get the 'trigger event'. |
IType |
getType()
Get the type attribute of this object. |
int |
hashCode()
|
protected boolean |
hideSourceFromToString()
Allows sub-classes the ability to hide the source attribute from the toString() calls. |
protected void |
setAddress(IAddressable address)
|
void |
setDrivingFrame(IEventFrameExecution drivingFrame)
|
void |
setFrame(IEventFrameExecution frame)
|
void |
setSource(IEventSource source)
|
void |
setTriggerEvent(IEvent triggerEvent)
Set the 'trigger event'. |
String |
toDetailedString()
Provides a formatted string describing this object in detail. |
String |
toIdentityString()
Get a string that provides the identification for this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEvent()
| Method Detail |
|---|
public final IEventFrameExecution getDrivingFrame()
IEventAn event occurs in its own event frame but it may have been caused by an event from another frame. This other frame is known as the 'driving' frame and directly causes this event. In this paradigm, where one event can cause another event to occur but in a separate event frame execution, it is sometimes necessary to know the frame of the first event so that the 2 events can be linked together.
getDrivingFrame in interface IEventIEventFrameExecution that is the event frame execution
of the event that caused this event to occur.public final IEventFrameExecution getFrame()
IEvent
getFrame in interface IEventIEventFrameExecution that identifies the frame this
event occurred in.public final IEventSource getSource()
IEvent
getSource in interface IEventpublic final void setSource(IEventSource source)
protected final void setAddress(IAddressable address)
public void setFrame(IEventFrameExecution frame)
public void setDrivingFrame(IEventFrameExecution drivingFrame)
public Object clone()
throws CloneNotSupportedException
IEvent
clone in interface IEventclone in class ObjectCloneNotSupportedExceptionObject#clone)_public String toDetailedString()
IDescriptorObject.toString()
method.
toDetailedString in interface IDescriptorpublic String toIdentityString()
IDescriptorObject.toString() method.
toIdentityString in interface IDescriptorpublic final IDomain getDomain()
IAddressable
getDomain in interface IAddressableIAddressable.getType()public final String getIdentity()
IAddressable
getIdentity in interface IAddressableString identity providing an identification for this
entity within its type and domain.IAddressable.getType(),
IAddressable.getDomain()public final IType getType()
IAddressable
getType in interface IAddressableIAddressable.getDomain()public final String getAddress()
IAddressable
getAddress in interface IAddressablepublic void setTriggerEvent(IEvent triggerEvent)
IEventIEventManager queue after this event has been processed.
setTriggerEvent in interface IEventtriggerEvent - the trigger event that will be queued after this event
has been processed.public IEvent getTriggerEvent()
IEventIEventManager queue after this event has been processed.
getTriggerEvent in interface IEventnull if there is not a trigger event.protected String getAdditionalToString()
protected boolean hideSourceFromToString()
toString() calls.
true if the source attribute should not be shown in
string representations. Default is false.public final String toString()
toString in class Objectpublic final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||