org.objectweb.jonathan.protocols.multiplex.lib
Class SimplePolicyFactory

java.lang.Object
  extended by org.objectweb.jonathan.protocols.multiplex.lib.SimplePolicyFactory
All Implemented Interfaces:
MultiplexingPolicyFactory

public class SimplePolicyFactory
extends Object
implements MultiplexingPolicyFactory

This is a naive implementation of a multiplexing policy. It always returns the first lower level session, and ignores feedback.


Constructor Summary
SimplePolicyFactory()
           
 
Method Summary
 MultiplexingPolicy newPolicy(Session_High[] sessions, Protocol[] protocols)
          Creates a new MultiplexingPolicy instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePolicyFactory

public SimplePolicyFactory()
Method Detail

newPolicy

public MultiplexingPolicy newPolicy(Session_High[] sessions,
                                    Protocol[] protocols)
Description copied from interface: MultiplexingPolicyFactory
Creates a new MultiplexingPolicy instance.

Specified by:
newPolicy in interface MultiplexingPolicyFactory
Parameters:
sessions - the lower level Session_Highs.
protocols - the protocols corresponding to the sessions, in the same order.
Returns:
a new MultiplexingPolicy.