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

Constructor Summary
ExtensibleEvent(int eventType)
           
ExtensibleEvent(java.lang.String name, int eventType)
           
ExtensibleEvent(java.lang.String name, int eventType, Brick originatingBrick, IConnector handlingBrick)
           
 
Method Summary
 void addRealTimeEvent(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, getEventType, getHandlingBrick, getName, getOriginatingBrick, getParameter, getParameterNames, getParameterValues, hasParameter, removeParameter, setHandlingBrick, setName, setOriginatingBrick, setParameterNames, setParameterValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensibleEvent

public ExtensibleEvent(int eventType)

ExtensibleEvent

public ExtensibleEvent(java.lang.String name,
                       int eventType)

ExtensibleEvent

public ExtensibleEvent(java.lang.String name,
                       int eventType,
                       Brick originatingBrick,
                       IConnector handlingBrick)
Method Detail

addRealTimeEvent

public void addRealTimeEvent(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