org.objectweb.dream.multiplexer
Interface PullPushMultiplexer

All Known Implementing Classes:
PullPushMultiplexerImpl

public interface PullPushMultiplexer

This interface defines a pull-push multiplexer. This multiplexer has two collection client interfaces:

Inputs can be attached (detached) to (from) outputs using the attach (detach) method.


Field Summary
static String ITF_NAME
          The commonly used name to refer to this interface.
 
Method Summary
 Attachment attach(String[] inputNames, Map[] inputContexts, String[] outputNames, Map[] outputContexts, Map parameters)
          Attaches a set of inputs to a set of outputs.
 void detach(Attachment attachment)
          Detaches a set of inputs from a set of outputs.
 ArrayList getAttachments()
          Returns the attachments that have been registered.
 void update(Attachment attachment)
          Updates an attachement.
 

Field Detail

ITF_NAME

public static final String ITF_NAME
The commonly used name to refer to this interface.

See Also:
Constant Field Values
Method Detail

attach

public Attachment attach(String[] inputNames,
                         Map[] inputContexts,
                         String[] outputNames,
                         Map[] outputContexts,
                         Map parameters)
                  throws NoSuchInterfaceException
Attaches a set of inputs to a set of outputs.

Parameters:
inputNames - the names of the inputs to be attached. These inputs must have been previously bound (with the same name) using the BindingController interface.
inputContexts - the contexts to be passed when pulling the inputs.
outputNames - the names of the outputs to wich intputs must be attached. These outputs must have been previously bound (with the same name) using the BindingController interface.
outputContexts - the contexts to be passed when pushing the outputs.
parameters - the attachement parameters.
Returns:
an Attachment object
Throws:
NoSuchInterfaceException - if inputNames or outputNames contains the name of an interface to which the component has not been bound.

detach

public void detach(Attachment attachment)
Detaches a set of inputs from a set of outputs.

Parameters:
attachment - an attachment returned by attach

update

public void update(Attachment attachment)
Updates an attachement. New parameters are given in an Attachment.

Parameters:
attachment - an attachment returned by attach.

getAttachments

public ArrayList getAttachments()
Returns the attachments that have been registered.

Returns:
the attachments that have been registered.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.