university
Class Education

java.lang.Object
  extended by university.Unit
      extended by university.Academic
          extended by university.Education
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
CIS

public class Education
extends Academic

Class for the Education department of the univeristy.

See Also:
Serialized Form

Constructor Summary
protected Education()
          Creates a new instance of Education.
protected Education(java.lang.String name, Address address)
          Creates a new instance of Eduaction
 
Method Summary
static Unit create(java.lang.String name, Address address)
          Singleton method to create an Eduaction Unit.
static Unit getInstance()
          Return the unit belonged to.
 
Methods inherited from class university.Unit
getAddress, getName, setAddress, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Education

protected Education()
Creates a new instance of Education.


Education

protected Education(java.lang.String name,
                    Address address)
Creates a new instance of Eduaction

Parameters:
name - The name of the Education Unit.
address - The address of the Education Unit.
Method Detail

getInstance

public static Unit getInstance()
Return the unit belonged to.

Returns:
Unit The Unit that it belongs to.

create

public static Unit create(java.lang.String name,
                          Address address)
Singleton method to create an Eduaction Unit.

Parameters:
name - The name of the Education Unit.
address - The address of the Eduaction Unit.
Returns:
Unit The new Education Unit.