org.objectweb.fractal.aokell.lib.control.lifecycle
Class CompositeLifeCycleControllerImpl

java.lang.Object
  extended by org.objectweb.fractal.aokell.lib.control.lifecycle.CompositeLifeCycleControllerImpl
All Implemented Interfaces:
Controller, LifeCycleController, org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator

public class CompositeLifeCycleControllerImpl
extends Object
implements org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator, Controller

Implementation of the lifecycle controller for non composite components. This class originates from the Julia source code. Although this class is not present at this in the Julia source code, it has been generated from the existing mixin chunks.

Author:
Lionel Seinturier

Field Summary
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
CompositeLifeCycleControllerImpl()
           
 
Method Summary
 void cloneFcCtrl(Component dst, Object hints)
          Clone the controller state from the current component to another one.
 boolean fcActivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator component)
           
 void fcInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator component)
           
 String getFcState()
           
 void initFcCtrl()
          Initialize the controller.
 void setFcCompCtrl(Component compctrl)
          Set the reference towards the component controller associated to this controller.
 boolean setFcStarted()
           
 boolean setFcStopped()
           
 void setFcStopping(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator coordinator)
           
 void startFc()
          Checks the mandatory client interfaces of the component (and of all its sub components) and then calls the overriden method.
 void stopFc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLifeCycleControllerImpl

public CompositeLifeCycleControllerImpl()
Method Detail

startFc

public void startFc()
             throws IllegalLifeCycleException
Checks the mandatory client interfaces of the component (and of all its sub components) and then calls the overriden method.

Specified by:
startFc in interface LifeCycleController
Throws:
IllegalLifeCycleException - if a problem occurs.

getFcState

public String getFcState()
Specified by:
getFcState in interface LifeCycleController

stopFc

public void stopFc()
            throws IllegalLifeCycleException
Specified by:
stopFc in interface LifeCycleController
Throws:
IllegalLifeCycleException

fcActivated

public boolean fcActivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator component)
Specified by:
fcActivated in interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator

setFcStarted

public boolean setFcStarted()
Specified by:
setFcStarted in interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator

fcInactivated

public void fcInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator component)
Specified by:
fcInactivated in interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator

setFcStopping

public void setFcStopping(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator coordinator)
                   throws IllegalLifeCycleException
Specified by:
setFcStopping in interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator
Throws:
IllegalLifeCycleException

setFcStopped

public boolean setFcStopped()
Specified by:
setFcStopped in interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator

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'être 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