Prism.extensions.evt
Class ExtensibleEvent

java.lang.Object
  extended by Prism.core.Event
      extended by Prism.extensions.evt.ExtensibleEvent
All Implemented Interfaces:
java.io.Serializable

public class ExtensibleEvent
extends Event
implements java.io.Serializable

A subclass of Event provides extra capability on top of Event object. Extra capability can be selected by installing the appropriate extension. Installation of appropriate extension can be done by setting the appropriate interface to the implementation of extensions. There are access methods provided to allow installation of these extensions.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class Prism.core.Event
EVENT_INITIAL_LENGTH, eventType, handlingBrick, name, originatingBrick, parameterName, parameterValue
 
Constructor Summary
ExtensibleEvent(java.lang.String name)
          Simple constructor that instantiates an Event object.
 
Method Summary
 void addRealTimeModule(AbstractRealTimeEvent realTimeEvent)
          Installs the real time extension.
 AbstractRealTimeEvent getRealTime()
          Return the installed real time extension object.
 Event replicate()
          Creates a clone of this ExtensibleEvent.
 
Methods inherited from class Prism.core.Event
addParameter, getParameter, hasParameter, removeParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensibleEvent

public ExtensibleEvent(java.lang.String name)
Simple constructor that instantiates an Event object.

Parameters:
name - name of the event
Method Detail

addRealTimeModule

public void addRealTimeModule(AbstractRealTimeEvent realTimeEvent)
Installs the real time extension.

Parameters:
realtimeEvent - The real time extension object

getRealTime

public AbstractRealTimeEvent getRealTime()
Return the installed real time extension object.

Returns:
IRealTime The real time extension object

replicate

public Event replicate()
Creates a clone of this ExtensibleEvent.

Overrides:
replicate in class Event
Returns:
Event Clone of this event