gumbo.util.route
Class DirectRouters.Router

java.lang.Object
  |
  +--gumbo.util.route.EventRouter
        |
        +--gumbo.util.route.EventDataRouter
              |
              +--gumbo.util.route.DirectRouters.Router
Enclosing class:
DirectRouters

public static class DirectRouters.Router
extends EventDataRouter

Connects EventOut to EventIn, one or two-way.


Constructor Summary
DirectRouters.Router(boolean connectAB, boolean connectBA)
           
 
Method Summary
protected  boolean checkConnect(int indexA, EventNode nodeA, int indexB, EventNode nodeB)
          Implementors should throw an exception if the nodes are incompatible for connection, and return false if the connection should be silently ignored.
 
Methods inherited from class gumbo.util.route.EventDataRouter
checkDisconnect, isConnectAB, isConnectBA, sync
 
Methods inherited from class gumbo.util.route.EventRouter
connect, connect, disconnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectRouters.Router

public DirectRouters.Router(boolean connectAB,
                            boolean connectBA)
Method Detail

checkConnect

protected boolean checkConnect(int indexA,
                               EventNode nodeA,
                               int indexB,
                               EventNode nodeB)
Description copied from class: EventRouter
Implementors should throw an exception if the nodes are incompatible for connection, and return false if the connection should be silently ignored.

Overrides:
checkConnect in class EventDataRouter