cin.aquario
Class ActionBreath

java.lang.Object
  extended byorg.simulare.Named
      extended byorg.simulare.AbstractTask
          extended bycin.aquario.ActionBreath
All Implemented Interfaces:
Name, Task

public class ActionBreath
extends AbstractTask

Defines the breathing action. Coral and fishes breath the oxigen from the aquarium.


Field Summary
static java.lang.String CONSUMER
           
static java.lang.String PRODUCER
           
 
Fields inherited from class org.simulare.AbstractTask
tevent
 
Constructor Summary
ActionBreath()
           
ActionBreath(java.lang.String name)
           
 
Method Summary
 void execute(Item item)
          Executes atask over an item.
 
Methods inherited from class org.simulare.AbstractTask
addTaskListener, fireTask, fireTaskExecuted, removeTaskListener
 
Methods inherited from class org.simulare.Named
addNameListener, fireName, fireNameChanged, getName, removeNameListener, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.simulare.Name
addNameListener, getName, removeNameListener, setName
 

Field Detail

PRODUCER

public static final java.lang.String PRODUCER
See Also:
Constant Field Values

CONSUMER

public static final java.lang.String CONSUMER
See Also:
Constant Field Values
Constructor Detail

ActionBreath

public ActionBreath()

ActionBreath

public ActionBreath(java.lang.String name)
Method Detail

execute

public void execute(Item item)
Description copied from interface: Task
Executes atask over an item. And must notify the listeners.

Parameters:
item - The item to execute a task over.