de.fhg.igd.jhsm
Class HSMEventBus

java.lang.Object
  extended byde.fhg.igd.jhsm.AbstractDispatcher
      extended byde.fhg.igd.jhsm.HSMEventBus
All Implemented Interfaces:
Dispatcher, EventBus, EventListener, Serializable

public class HSMEventBus
extends AbstractDispatcher
implements EventBus, Serializable

A dispatcher for global hsm events. Events that are dispatched via the event bus can affect the whole statemachine.

Version:
"$Id: HSMEventBus.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Haevecker
See Also:
Serialized Form

Field Summary
private  EventListener dispatcher_
           
private  Logger LOG
           
 
Fields inherited from class de.fhg.igd.jhsm.AbstractDispatcher
 
Constructor Summary
HSMEventBus(Interpreter dispatcher)
          Creates a new instance of this class.
 
Method Summary
 void eventReceived(Event event)
          
 EventListener getDispatcher()
          Returns the dispatcher for the associated hsm.
 String toString()
           This implementation is thread-safe.
 
Methods inherited from class de.fhg.igd.jhsm.AbstractDispatcher
addEventListener, notifyListeners, removeEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.fhg.igd.jhsm.Dispatcher
addEventListener, notifyListeners, removeEventListener
 

Field Detail

LOG

private final Logger LOG

dispatcher_

private EventListener dispatcher_
Constructor Detail

HSMEventBus

public HSMEventBus(Interpreter dispatcher)
Creates a new instance of this class.

Method Detail

eventReceived

public void eventReceived(Event event)

This implementation is thread-safe.

Specified by:
eventReceived in interface EventListener

toString

public String toString()

This implementation is thread-safe.


getDispatcher

public EventListener getDispatcher()
Description copied from interface: EventBus
Returns the dispatcher for the associated hsm.

Specified by:
getDispatcher in interface EventBus


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.