org.objectweb.dream.multiplexer
Class Attachment

java.lang.Object
  extended byorg.objectweb.dream.multiplexer.Attachment
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
PeriodicAttachment

public class Attachment
extends Object
implements Serializable, Cloneable

This class defines an Attachement.

Version:
1.0
Author:
Vivien Quema
See Also:
Serialized Form

Field Summary
protected  int id
          The id of the attachment.
protected  Map[] inputContexts
          The context to be passed to inputs when they are used.
protected  String[] inputNames
          The name of attached inputs.
protected  Pull[] inputs
          The attached inputs.
protected  Map[] outputContexts
          The context to be passed to outputs when they are used.
protected  String[] outputNames
          The name of the outputs to which inputs are attached.
protected  Push[] outputs
          The outputs to which inputs are attached.
 
Constructor Summary
Attachment(int id, String[] inputNames, Pull[] inputs, Map[] inputContexts, String[] outputNames, Push[] outputs, Map[] outputContexts)
          Creates a new Attachment object
 
Method Summary
 Object clone()
          Returns a clone of this attachment.
 boolean equals(Object obj)
          Returns true iff the specified object is an Attachment with the same id.
 int getId()
           
 Map[] getInputContexts()
           
 String[] getInputNames()
           
 Pull[] getInputs()
           
 Map[] getOutputContexts()
           
 String[] getOutputNames()
           
 Push[] getOutputs()
           
 int hashCode()
           
 void setInputContexts(Map[] inputContexts)
           
 void setInputNames(String[] inputNames)
           
 void setInputs(Pull[] inputs)
           
 void setOutputContexts(Map[] outputContexts)
           
 void setOutputNames(String[] outputNames)
           
 void setOutputs(Push[] outputs)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id
The id of the attachment.


inputNames

protected String[] inputNames
The name of attached inputs.


inputs

protected Pull[] inputs
The attached inputs.


inputContexts

protected Map[] inputContexts
The context to be passed to inputs when they are used.


outputNames

protected String[] outputNames
The name of the outputs to which inputs are attached.


outputs

protected Push[] outputs
The outputs to which inputs are attached.


outputContexts

protected Map[] outputContexts
The context to be passed to outputs when they are used.

Constructor Detail

Attachment

public Attachment(int id,
                  String[] inputNames,
                  Pull[] inputs,
                  Map[] inputContexts,
                  String[] outputNames,
                  Push[] outputs,
                  Map[] outputContexts)
Creates a new Attachment object

Parameters:
id - the id of the attachment.
inputNames - the names of the attached inputs.
inputs - the attached inputs.
inputContexts - the context associated with attached inputs.
outputNames - the names of the attached outputs.
outputs - the attached outputs.
outputContexts - the context associated with attached outputs.
Method Detail

getId

public int getId()
Returns:
the id.

getInputContexts

public Map[] getInputContexts()
Returns:
the inputContexts.

setInputContexts

public void setInputContexts(Map[] inputContexts)
Parameters:
inputContexts - the inputContexts to set.

getInputNames

public String[] getInputNames()
Returns:
the inputNames.

setInputNames

public void setInputNames(String[] inputNames)
Parameters:
inputNames - the inputNames to set.

getOutputContexts

public Map[] getOutputContexts()
Returns:
the outputContexts.

setOutputContexts

public void setOutputContexts(Map[] outputContexts)
Parameters:
outputContexts - the outputContexts to set.

getOutputNames

public String[] getOutputNames()
Returns:
the outputNames.

setOutputNames

public void setOutputNames(String[] outputNames)
Parameters:
outputNames - the outputNames to set.

getInputs

public Pull[] getInputs()
Returns:
the inputs.

setInputs

public void setInputs(Pull[] inputs)
Parameters:
inputs - the inputs to set.

getOutputs

public Push[] getOutputs()
Returns:
the outputs.

setOutputs

public void setOutputs(Push[] outputs)
Parameters:
outputs - the outputs to set.

hashCode

public int hashCode()
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Returns true iff the specified object is an Attachment with the same id.

See Also:
Object.equals(java.lang.Object)

clone

public Object clone()
Returns a clone of this attachment.

Notes: inputs, inputContexts, outputs, and outputs are set to null.

Returns:
a clone of this attachment.


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