cin.aquario
Class Report3D

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

public class Report3D
extends AbstractTask
implements VisualTask

A 3D report to represent aquarium items. The aquarium is represented by a transparent box, the coral is a green sphere, the ordinary fish is a yellow sphere and the predator is a red sphere.


Field Summary
 
Fields inherited from class org.simulare.AbstractTask
tevent
 
Constructor Summary
Report3D()
           
Report3D(java.lang.String name)
           
 
Method Summary
 void execute(Item item)
          Executes atask over an item.
 java.awt.Component getEditor()
          Returns the task editor.
 java.awt.Component getView()
          Returns the task visualization.
 
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.Task
addTaskListener, removeTaskListener
 
Methods inherited from interface org.simulare.Name
addNameListener, getName, removeNameListener, setName
 

Constructor Detail

Report3D

public Report3D()

Report3D

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

Specified by:
execute in interface Task
Parameters:
item - The item to execute a task over.

getEditor

public java.awt.Component getEditor()
Description copied from interface: VisualTask
Returns the task editor.

Specified by:
getEditor in interface VisualTask
Returns:
The task editor visual component.

getView

public java.awt.Component getView()
Description copied from interface: VisualTask
Returns the task visualization.

Specified by:
getView in interface VisualTask
Returns:
The task visualization component.