se.ericsson.eto.norarc.javaframe
Class Composite

java.lang.Object
  extended byse.ericsson.eto.norarc.javaframe.ActiveObject
      extended byse.ericsson.eto.norarc.javaframe.Composite

public class Composite
extends ActiveObject

A composite of ActiveObjects collected in a list. A Composite will normally have Mediators on its edges.

See Also:
Mediator, ActiveObject

Field Summary
 java.util.LinkedList activeObjectList
           
 
Fields inherited from class se.ericsson.eto.norarc.javaframe.ActiveObject
activeObjectName, owner
 
Constructor Summary
Composite()
          The default constructor has no parameters, but any given specific extension's constructor will normally have the edge Mediators as parameters
 
Method Summary
 void addActiveObject(ActiveObject newActiveObject)
          Add an ActiveObject to the composite
 void removeActiveObject(ActiveObject oldActiveObject)
          Removes oldActiveObject from the composite's containment list and removes all links to the mediators of oldActiveObject.
 
Methods inherited from class se.ericsson.eto.norarc.javaframe.ActiveObject
activeObjectName, setActiveObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeObjectList

public java.util.LinkedList activeObjectList
Constructor Detail

Composite

public Composite()
The default constructor has no parameters, but any given specific extension's constructor will normally have the edge Mediators as parameters

Method Detail

addActiveObject

public void addActiveObject(ActiveObject newActiveObject)
Add an ActiveObject to the composite


removeActiveObject

public void removeActiveObject(ActiveObject oldActiveObject)
Removes oldActiveObject from the composite's containment list and removes all links to the mediators of oldActiveObject.

For this to work two preconditions must be met:
1. All formal and actual mediators in the class of the composite object (i.e., the class of this object) must be be declared as public fields.
2. All formal mediators in the class of oldActiveObject must be declared as public fields.

Parameters:
oldActiveObject - - the activeObject to be removed