Class Courses

java.lang.Object
  extended by Courses

public class Courses
extends java.lang.Object

Creates a course.

Author:
nossl

Constructor Summary
Courses(java.lang.String courseName, java.lang.String courseNumber, java.lang.String instructor, java.lang.String numStudents, java.lang.String emptySlots, java.lang.String totalSeatsAvail, java.lang.String secNum)
          Sets the course information.
 
Method Summary
 java.lang.String getCourseName()
          Get the course name
 java.lang.String getCourseNumber()
          Get the course number
 java.lang.String getEmptySlots()
          Get the number of seats available.
 java.lang.String getInstructor()
          Get the Instructor Name.
 java.lang.String getNumStudents()
          Get the number of student assigned to the course.
 java.lang.String getsecNum()
          Get the section number
 java.lang.String getTotalSeatsAvail()
          Get the total number of seats for the class.
 void setCourseName(java.lang.String courseName)
          Sets the course name.
 void setCourseNumber(java.lang.String courseNumber)
          Sets the course number.
 void setEmptySlots(java.lang.String emptySlots)
          Finds the number of seats available.
 void setInstructor(java.lang.String instructor)
          Sets the instructor name.
 void setNumStudents(java.lang.String numStudents)
          Sets the number of students.
 void setsecNum(java.lang.String secNum)
          Sets the section number.
 void setTotalSeatsAvail(java.lang.String totalSeatsAvail)
          Finds the total seats for the course.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Courses

public Courses(java.lang.String courseName,
               java.lang.String courseNumber,
               java.lang.String instructor,
               java.lang.String numStudents,
               java.lang.String emptySlots,
               java.lang.String totalSeatsAvail,
               java.lang.String secNum)
Sets the course information.

Parameters:
courseName -
courseNumber -
instructor -
numStudents -
emptySlots -
totalSeatsAvail -
secNum -
Method Detail

getCourseName

public java.lang.String getCourseName()
Get the course name

Returns:

setCourseName

public void setCourseName(java.lang.String courseName)
Sets the course name.

Parameters:
courseName -

getCourseNumber

public java.lang.String getCourseNumber()
Get the course number

Returns:

setCourseNumber

public void setCourseNumber(java.lang.String courseNumber)
Sets the course number.

Parameters:
courseNumber -

getInstructor

public java.lang.String getInstructor()
Get the Instructor Name.

Returns:

setInstructor

public void setInstructor(java.lang.String instructor)
Sets the instructor name.

Parameters:
instructor -

getNumStudents

public java.lang.String getNumStudents()
Get the number of student assigned to the course.

Returns:

setNumStudents

public void setNumStudents(java.lang.String numStudents)
Sets the number of students.

Parameters:
numStudents -

getEmptySlots

public java.lang.String getEmptySlots()
Get the number of seats available.

Returns:

setEmptySlots

public void setEmptySlots(java.lang.String emptySlots)
Finds the number of seats available.

Parameters:
emptySlots -

getTotalSeatsAvail

public java.lang.String getTotalSeatsAvail()
Get the total number of seats for the class.

Returns:

setTotalSeatsAvail

public void setTotalSeatsAvail(java.lang.String totalSeatsAvail)
Finds the total seats for the course.

Parameters:
totalSeatsAvail -

getsecNum

public java.lang.String getsecNum()
Get the section number

Returns:

setsecNum

public void setsecNum(java.lang.String secNum)
Sets the section number.

Parameters:
secNum -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object