public class Organization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Person> |
employees
This class is used to initialize and store a list of employees
and rooms available for meetings.
|
private java.util.ArrayList<Room> |
rooms |
Constructor and Description |
---|
Organization()
Default constructor - sets up some rooms and people.
|
Modifier and Type | Method and Description |
---|---|
Person |
getEmployee(java.lang.String name)
Search for and retrieve a person.
|
java.util.ArrayList<Person> |
getEmployees() |
Room |
getRoom(java.lang.String ID)
Search for and retrieve a room.
|
java.util.ArrayList<Room> |
getRooms() |
private java.util.ArrayList<Person> employees
private java.util.ArrayList<Room> rooms
public Organization()
public java.util.ArrayList<Person> getEmployees()
public java.util.ArrayList<Room> getRooms()
public Room getRoom(java.lang.String ID) throws java.lang.Exception
ID
- - ID of the room to retrieve.java.lang.Exception
- - If the room does not exist.public Person getEmployee(java.lang.String name) throws java.lang.Exception
name
- - The name of the person to retrieve.java.lang.Exception
- - If the person does not exist.