org.jscience.economics
Class Organigram

java.lang.Object
  extended by org.jscience.util.NAryTree
      extended by org.jscience.economics.Organigram
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Named, Tree

public class Organigram
extends NAryTree
implements Named

A class representing a formal organigram, that is the organization a it is seen from above and meant to be by the boss. It is different from the real process of work (see Worker, the hierarchy of workers is not really a hierarchy) and different from the flow of resources (see Work).

See Also:
Serialized Form

Constructor Summary
Organigram(java.lang.String name)
          Creates a new Organigram object.
Organigram(java.lang.String name, java.util.Set workers)
          Creates a new Organigram object.
 
Method Summary
 void addWorker(Worker worker)
          DOCUMENT ME!
 java.util.Set getAllWorkers()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.util.Set getWorkers()
          DOCUMENT ME!
 void removeWorker(Worker worker)
          DOCUMENT ME!
 void setContents(java.lang.Object obj)
          DOCUMENT ME!
 void setName(java.lang.String name)
          DOCUMENT ME!
 void setWorkers(java.util.Set workers)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.util.NAryTree
addChild, clone, equals, extractNAryTree, getAllChildren, getChildren, getCommonRoot, getContents, getDepth, getLineage, getParent, getRoot, getRoot, hasChild, hasChild, hasDistantChild, hasParent, removeChild, setChildren
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Organigram

public Organigram(java.lang.String name)
Creates a new Organigram object.

Parameters:
name - DOCUMENT ME!

Organigram

public Organigram(java.lang.String name,
                  java.util.Set workers)
Creates a new Organigram object.

Parameters:
name - DOCUMENT ME!
workers - DOCUMENT ME!
Method Detail

getName

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

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

setName

public void setName(java.lang.String name)
DOCUMENT ME!

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

setContents

public void setContents(java.lang.Object obj)
DOCUMENT ME!

Overrides:
setContents in class NAryTree
Parameters:
obj - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getWorkers

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

Returns:
DOCUMENT ME!

addWorker

public void addWorker(Worker worker)
DOCUMENT ME!

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

removeWorker

public void removeWorker(Worker worker)
DOCUMENT ME!

Parameters:
worker - DOCUMENT ME!

setWorkers

public void setWorkers(java.util.Set workers)
DOCUMENT ME!

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

getAllWorkers

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

Returns:
DOCUMENT ME!