org.objectweb.fractal.aokell.lib.control.superc
Class SuperControllerImpl

java.lang.Object
  extended by org.objectweb.fractal.aokell.lib.control.superc.SuperControllerImpl
All Implemented Interfaces:
Controller, SuperController, org.objectweb.fractal.julia.control.content.SuperControllerNotifier

public class SuperControllerImpl
extends Object
implements org.objectweb.fractal.julia.control.content.SuperControllerNotifier, Controller

Implementation of the super controller.

Author:
Lionel Seinturier

Constructor Summary
SuperControllerImpl()
           
 
Method Summary
 void addedToFc(Component c)
           
 void cloneFcCtrl(Component dst, Object hints)
          Clone the controller state from the current component to another one.
 Component[] getFcSuperComponents()
           
 void initFcCtrl()
          Initialize the controller.
 void removedFromFc(Component c)
           
 void setFcCompCtrl(Component compctrl)
          Set the reference towards the component controller associated to this controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperControllerImpl

public SuperControllerImpl()
Method Detail

getFcSuperComponents

public Component[] getFcSuperComponents()
Specified by:
getFcSuperComponents in interface SuperController

addedToFc

public void addedToFc(Component c)
Specified by:
addedToFc in interface org.objectweb.fractal.julia.control.content.SuperControllerNotifier

removedFromFc

public void removedFromFc(Component c)
Specified by:
removedFromFc in interface org.objectweb.fractal.julia.control.content.SuperControllerNotifier

setFcCompCtrl

public void setFcCompCtrl(Component compctrl)
Set the reference towards the component controller associated to this controller.

Specified by:
setFcCompCtrl in interface Controller

initFcCtrl

public void initFcCtrl()
Initialize the controller.

Specified by:
initFcCtrl in interface Controller

cloneFcCtrl

public void cloneFcCtrl(Component dst,
                        Object hints)
                 throws CloneCtrlException
Clone the controller state from the current component to another one. This method may receive some hints on how to do this, or provide some hints on how this has been done. For instance, the hints may be a map that is read and/or written by the controller. The raison d'etre of these hints is that when its state is cloned, a controller may produce results that are needed by other controllers.

Specified by:
cloneFcCtrl in interface Controller
Parameters:
dst - the destination component
hints - hints for performing the operation
Throws:
CloneCtrlException