public class Meeting
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Person> |
attendees |
private int |
day |
private java.lang.String |
description |
private int |
end |
private int |
month |
private Room |
room |
private int |
start |
Constructor and Description |
---|
Meeting()
Default constructor
|
Meeting(int month,
int day)
Constructor that can be used to block off a whole day -
such as for a vacation
|
Meeting(int month,
int day,
int start,
int end)
More detailed constructor
|
Meeting(int month,
int day,
int start,
int end,
java.util.ArrayList<Person> attendees,
Room room,
java.lang.String description)
More detailed constructor
|
Meeting(int month,
int day,
java.lang.String description)
Constructor that can be used to block off a whole day -
such as for a vacation
|
Modifier and Type | Method and Description |
---|---|
void |
addAttendee(Person attendee)
Add an attendee to the meeting.
|
java.util.ArrayList<Person> |
getAttendees() |
int |
getDay() |
java.lang.String |
getDescription() |
int |
getEndTime() |
int |
getMonth()
Getters and Setters
|
Room |
getRoom() |
int |
getStartTime() |
void |
removeAttendee(Person attendee)
Removes an attendee from the meeting.
|
void |
setDay(int day) |
void |
setDescription(java.lang.String description) |
void |
setEndTime(int end) |
void |
setMonth(int month) |
void |
setRoom(Room room) |
void |
setStartTime(int start) |
java.lang.String |
toString()
Returns information about the meeting as a formatted string.
|
private int month
private int day
private int start
private int end
private java.util.ArrayList<Person> attendees
private Room room
private java.lang.String description
public Meeting()
public Meeting(int month, int day)
month
- - The month of the meeting (1-12).day
- - The day of the meeting (1-31).public Meeting(int month, int day, java.lang.String description)
month
- - The month of the meeting (1-12).day
- - The day of the meeting (1-31).description
- - A description of the meeting.public Meeting(int month, int day, int start, int end)
month
- - The month of the meeting (1-12).day
- - The day of the meeting (1-31).start
- - The time the meeting starts (0-23).end
- - The time the meeting ends (0-23).public Meeting(int month, int day, int start, int end, java.util.ArrayList<Person> attendees, Room room, java.lang.String description)
month
- - The month of the meeting (1-12).day
- - The day of the meeting (1-31).start
- - The time the meeting starts (0-23).end
- - The time the meeting ends (0-23).attendees
- - The people attending the meeting.room
- - The room that the meeting is taking place in.description
- - A description of the meeting.public void addAttendee(Person attendee)
attendee
- - The person to add.public void removeAttendee(Person attendee)
attendee
- - The person to remove.public java.lang.String toString()
toString
in class java.lang.Object
public int getMonth()
public void setMonth(int month)
public int getDay()
public void setDay(int day)
public int getStartTime()
public void setStartTime(int start)
public int getEndTime()
public void setEndTime(int end)
public java.util.ArrayList<Person> getAttendees()
public Room getRoom()
public void setRoom(Room room)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)