org.objectweb.dream.control.lifecycle
Class ActivityLifeCycleMixin

java.lang.Object
  extended by org.objectweb.dream.control.lifecycle.ActivityLifeCycleMixin
All Implemented Interfaces:
TaskStoppedListener

public abstract class ActivityLifeCycleMixin
extends Object
implements TaskStoppedListener

This mixin can be applied to a lifecycle controller in order to start the activities of the component to which the controller belongs.

Requirements


Field Summary
 Component _this_weaveableC
          The weaveableC field required by this mixin.
 Logger _this_weaveableLCCLogger
          The weaveableLCCLogger field required by this mixin.
 TaskActivationController _this_weaveableTAC
          The weaveableTAC field required by this mixin.
 TaskController _this_weaveableTC
          The weaveableTC field required by this mixin.
protected  LifeCycleCoordinator fcActivityCoordinator
           
protected  int fcNbStoppingTask
           
 
Method Summary
abstract  boolean _super_checkInactivity()
          The checkInactivity method overriden by this mixin.
abstract  boolean _super_setFcStarted()
          The LifeCycleCoordinator.setFcStarted()method overriden by this mixin.
abstract  void _super_setFcStopping(LifeCycleCoordinator coordinator)
          The LifeCycleCoordinator.setFcStopping(LifeCycleCoordinator) method overriden by this mixin.
abstract  boolean _this_isInactivated(LifeCycleCoordinator coordinator)
          The isInactivated method used by this mixin.
 boolean checkInactivity()
          Returns true If the component has no executing task and super implementation returns true.
 boolean setFcStarted()
          Calls super implementation and starts internal activities in the started state.
 void setFcStopping(LifeCycleCoordinator coordinator)
          Calls super implementation and looks for this component's coordinator controller.
 void taskStopped(Task task)
          Called when the specified task is inactinaved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcNbStoppingTask

protected int fcNbStoppingTask

fcActivityCoordinator

protected LifeCycleCoordinator fcActivityCoordinator

_this_weaveableC

public Component _this_weaveableC
The weaveableC field required by this mixin. This field is supposed to reference the Componentinterface of the component to which this controller object belongs.


_this_weaveableLCCLogger

public Logger _this_weaveableLCCLogger
The weaveableLCCLogger field required by this mixin. This field is supposed to reference the Loggerof this controller.


_this_weaveableTC

public TaskController _this_weaveableTC
The weaveableTC field required by this mixin. This field is supposed to reference the TaskControllerinterface of the component to which this controller object belongs.


_this_weaveableTAC

public TaskActivationController _this_weaveableTAC
The weaveableTAC field required by this mixin. This field is supposed to reference the TaskActivationControllerinterface of the component to which this controller object belongs.

Method Detail

setFcStarted

public boolean setFcStarted()
                     throws IllegalLifeCycleException
Calls super implementation and starts internal activities in the started state.

Throws:
IllegalLifeCycleException
See Also:
LifeCycleCoordinator.setFcStarted()

setFcStopping

public void setFcStopping(LifeCycleCoordinator coordinator)
                   throws IllegalLifeCycleException
Calls super implementation and looks for this component's coordinator controller.

Throws:
IllegalLifeCycleException
See Also:
LifeCycleCoordinator.setFcStopping(LifeCycleCoordinator)

checkInactivity

public boolean checkInactivity()
Returns true If the component has no executing task and super implementation returns true.

Returns:
true If the component is inactive

taskStopped

public void taskStopped(Task task)
Description copied from interface: TaskStoppedListener
Called when the specified task is inactinaved.

Specified by:
taskStopped in interface TaskStoppedListener
Parameters:
task - an inactivated task.
See Also:
TaskStoppedListener.taskStopped(Task)

_super_setFcStarted

public abstract boolean _super_setFcStarted()
                                     throws IllegalLifeCycleException
The LifeCycleCoordinator.setFcStarted()method overriden by this mixin.

Throws:
IllegalLifeCycleException
See Also:
BasicLifeCycleControllerMixin

_super_setFcStopping

public abstract void _super_setFcStopping(LifeCycleCoordinator coordinator)
                                   throws IllegalLifeCycleException
The LifeCycleCoordinator.setFcStopping(LifeCycleCoordinator) method overriden by this mixin.

Throws:
IllegalLifeCycleException
See Also:
BasicLifeCycleControllerMixin

_super_checkInactivity

public abstract boolean _super_checkInactivity()
The checkInactivity method overriden by this mixin. This method is supposed to work as this SimpleLifeCycleControllerMixin.checkInactivity()method.

See Also:
SimpleLifeCycleControllerMixin.checkInactivity()

_this_isInactivated

public abstract boolean _this_isInactivated(LifeCycleCoordinator coordinator)
The isInactivated method used by this mixin. This method is supposed to work as this SimpleLifeCycleControllerMixin.isInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)method.

See Also:
SimpleLifeCycleControllerMixin.isInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)


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