|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fulmine.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()
IEvent
An 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 IEvent
IEventFrameExecution
that is the event frame execution
of the event that caused this event to occur.public final IEventFrameExecution getFrame()
IEvent
getFrame
in interface IEvent
IEventFrameExecution
that identifies the frame this
event occurred in.public final IEventSource getSource()
IEvent
getSource
in interface IEvent
public 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 IEvent
clone
in class Object
CloneNotSupportedException
Object#clone)_
public String toDetailedString()
IDescriptor
Object.toString()
method.
toDetailedString
in interface IDescriptor
public String toIdentityString()
IDescriptor
Object.toString()
method.
toIdentityString
in interface IDescriptor
public final IDomain getDomain()
IAddressable
getDomain
in interface IAddressable
IAddressable.getType()
public final String getIdentity()
IAddressable
getIdentity
in interface IAddressable
String
identity providing an identification for this
entity within its type and domain.IAddressable.getType()
,
IAddressable.getDomain()
public final IType getType()
IAddressable
getType
in interface IAddressable
IAddressable.getDomain()
public final String getAddress()
IAddressable
getAddress
in interface IAddressable
public void setTriggerEvent(IEvent triggerEvent)
IEvent
IEventManager
queue after this event has been processed.
setTriggerEvent
in interface IEvent
triggerEvent
- the trigger event that will be queued after this event
has been processed.public IEvent getTriggerEvent()
IEvent
IEventManager
queue after this event has been processed.
getTriggerEvent
in interface IEvent
null
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 Object
public final int hashCode()
hashCode
in class Object
public 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 |