cin.aquario
Class ActionMove

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

public class ActionMove
extends AbstractTask

An action to execute corals and fishes movement into the aquarium.


Field Summary
static java.lang.String CONSUMERX
           
static java.lang.String CONSUMERY
           
static java.lang.String CONSUMERZ
           
static java.lang.String PRODUCERX
           
static java.lang.String PRODUCERY
           
static java.lang.String PRODUCERZ
           
 
Fields inherited from class org.simulare.AbstractTask
tevent
 
Constructor Summary
ActionMove()
           
ActionMove(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

PRODUCERX

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

PRODUCERY

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

PRODUCERZ

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

CONSUMERX

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

CONSUMERY

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

CONSUMERZ

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

ActionMove

public ActionMove()

ActionMove

public ActionMove(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.