net.sf.myra.framework
Class CompoundDaemonAction

java.lang.Object
  extended by net.sf.myra.framework.CompoundDaemonAction
All Implemented Interfaces:
DaemonAction

public class CompoundDaemonAction
extends java.lang.Object
implements DaemonAction

This class represents a daemon action made by the combination of several daemon actions. The actions are performed in cascade order of insertion.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
CompoundDaemonAction()
          Default constructor.
 
Method Summary
 void add(DaemonAction action)
          Adds the specifided action.
 void perform(Colony colony)
           
 void remove(DaemonAction action)
          Removes the specified action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundDaemonAction

public CompoundDaemonAction()
Default constructor.

Method Detail

add

public void add(DaemonAction action)
Adds the specifided action.

Parameters:
action - the action to add.

remove

public void remove(DaemonAction action)
Removes the specified action.

Parameters:
action - the action to remove.

perform

public void perform(Colony colony)
Specified by:
perform in interface DaemonAction


Copyright © 2013. All Rights Reserved.