Class SimpleRouter

java.lang.Object
org.xj3d.impl.core.eventmodel.SimpleRouter
All Implemented Interfaces:
Router

public class SimpleRouter extends Object implements Router
The manager of route information for both static and runtime systems.

The implementation provides a one-shot route processing mechanism. It does not continuously evaluate routeSet. That is left to the caller code. Once the processRoutes() method is called, it will loop through all available routeSet until none of them have any changed values to send. At this point it will return and wait until the next time it is called.

This implementation does not deal correctly with fan-out of events. This is a simple manager for this reason. The reason for this is that we've decided to optimise for speed for scenes that you know only have a single ROUTE from any given eventOut to another eventIn, which is the majority of scenes.

Version:
$Revision: 1.2 $
Author:
Justin Couch