university
Class CIS

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

public class CIS
extends Education

Class for the CIS department in the university. Uses the sigleton patterns so only one instance can be created

See Also:
Serialized Form

Method Summary
 void addLanguage(java.lang.String programmingLanguage)
          Adds a programming language to those taught by the CIS department
static Unit create(java.lang.String name, Address address)
          Creates a new CIS unit.
static Unit getInstance()
          Returns the unit
 java.lang.String[] getLanguages()
          Returns an array of the programming languages taught by the CIS department
 java.lang.String toString()
          Returns a String representation of the CIS unit
 
Methods inherited from class university.Unit
getAddress, getName, setAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static Unit getInstance()
Returns the unit

Returns:
Unit the unit

create

public static Unit create(java.lang.String name,
                          Address address)
Creates a new CIS unit.

Parameters:
name - The name of the unit
address - The address of the unit
Returns:
Unit that was ceated

addLanguage

public final void addLanguage(java.lang.String programmingLanguage)
Adds a programming language to those taught by the CIS department

Parameters:
programmingLanguage - The name of the new programming language

getLanguages

public final java.lang.String[] getLanguages()
Returns an array of the programming languages taught by the CIS department

Returns:
an array of the programming languages taught

toString

public java.lang.String toString()
Returns a String representation of the CIS unit

Overrides:
toString in class Unit
Returns:
String representing CIS