org.jscience.economics
Class Task

java.lang.Object
  extended by org.jscience.economics.Task
All Implemented Interfaces:
Named
Direct Known Subclasses:
OrganizationTask

public class Task
extends java.lang.Object
implements Named

A class representing the transformation of some materials and some human ressources into a finished something that can be sold. A product (whether primary or secondary, that is, already transformed) is a material thing. A service is a kind of immaterial product (like having a hair cut). Work is also known as task. Each task can in turn be divided further on into subtasks to further describe each process.


Constructor Summary
Task(java.lang.String name, java.util.Set resources, java.util.Set products)
          Creates a new Task object.
 
Method Summary
 void addSubTasks(Task task)
          DOCUMENT ME!
 double getDuration()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.lang.String getProcess()
          DOCUMENT ME!
 java.util.Set getProducts()
          DOCUMENT ME!
 java.util.Set getResources()
          DOCUMENT ME!
 java.util.Set getSubTasks()
          DOCUMENT ME!
 void removeSubTasks(Task task)
          DOCUMENT ME!
 void setDuration(double duration)
          DOCUMENT ME!
 void setProcess(java.lang.String process)
          DOCUMENT ME!
 void setSubTasks(java.util.Set tasks)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task(java.lang.String name,
            java.util.Set resources,
            java.util.Set products)
Creates a new Task object.

Parameters:
name - DOCUMENT ME!
resources - DOCUMENT ME!
products - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getProcess

public java.lang.String getProcess()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setProcess

public void setProcess(java.lang.String process)
DOCUMENT ME!

Parameters:
process - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getSubTasks

public java.util.Set getSubTasks()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addSubTasks

public void addSubTasks(Task task)
DOCUMENT ME!

Parameters:
task - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeSubTasks

public void removeSubTasks(Task task)
DOCUMENT ME!

Parameters:
task - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

setSubTasks

public void setSubTasks(java.util.Set tasks)
DOCUMENT ME!

Parameters:
tasks - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getResources

public java.util.Set getResources()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDuration

public double getDuration()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDuration

public void setDuration(double duration)
DOCUMENT ME!

Parameters:
duration - DOCUMENT ME!

getProducts

public java.util.Set getProducts()
DOCUMENT ME!

Returns:
DOCUMENT ME!