<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (15-ea) on Fri Mar 13 23:12:19 IRST 2020 -->
<title>Course</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="۲۰۲۰-۰۳-۱۳">
<meta name="description" content="declaration: package: com.company, class: Course">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
<script type="text/javascript" src="../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav" id="navbar.top">
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar.top.firstrow" class="navList" title="Navigation">
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Course.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skipNav" id="skip.navbar.top">
<!--   -->
</span></nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.company</a></div>
<h1 title="Class Course" class="title">Class Course</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree">java.lang.Object
<div class="inheritance">com.company.Course</div>
</div>
<section class="description">
<hr>
<pre>public class <span class="typeNameLabel">Course</span>
extends java.lang.Object</pre>
<div class="block">the Course class represents a course in a faculty</div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>1.0</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Maryam & Fatemeh</dd>
</dl>
</section>
<section class="summary">
<ul class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary" id="constructor.summary">
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String,com.company.Professor,int,int)">Course</a></span>&#8203;(java.lang.String&nbsp;name,
<a href="Professor.html" title="class in com.company">Professor</a>&nbsp;professor,
int&nbsp;credit,
int&nbsp;maxCapacity)</code></th>
<td class="colLast">
<div class="block">create a new course with given name and professor and credit and maxCapacity</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary" id="method.summary">
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addLab(com.company.Lab)">addLab</a></span>&#8203;(<a href="Lab.html" title="class in com.company">Lab</a>&nbsp;lab)</code></th>
<td class="colLast">
<div class="block">add a lab to list of labs</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#enrollStudent(com.company.Student)">enrollStudent</a></span>&#8203;(<a href="Student.html" title="class in com.company">Student</a>&nbsp;student)</code></th>
<td class="colLast">
<div class="block">enrolling students who wants to get the lab</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentCapacity()">getCurrentCapacity</a></span>()</code></th>
<td class="colLast">
<div class="block">get the current capacity of the course</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="Lab.html" title="class in com.company">Lab</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLabs()">getLabs</a></span>()</code></th>
<td class="colLast">
<div class="block">get the labs of the course</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxCapacity()">getMaxCapacity</a></span>()</code></th>
<td class="colLast">
<div class="block">get the max capacity of course</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getName()">getName</a></span>()</code></th>
<td class="colLast">
<div class="block">get the name of course</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code><a href="Professor.html" title="class in com.company">Professor</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getProfessor()">getProfessor</a></span>()</code></th>
<td class="colLast">
<div class="block">get the professor of course</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code><a href="Student.html" title="class in com.company">Student</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStudents()">getStudents</a></span>()</code></th>
<td class="colLast">
<div class="block">get the students of a course</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#print()">print</a></span>()</code></th>
<td class="colLast">
<div class="block">print the days when labs will be held
 and the first name and last name of students who have this course</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setName(java.lang.String)">setName</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setProfessor(com.company.Professor)">setProfessor</a></span>&#8203;(<a href="Professor.html" title="class in com.company">Professor</a>&nbsp;professor)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStudents(com.company.Student%5B%5D)">setStudents</a></span>&#8203;(<a href="Student.html" title="class in com.company">Student</a>[]&nbsp;students)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3 id="methods.inherited.from.class.java.lang.Object">Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails" id="constructor.detail">
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail" id="&lt;init&gt;(java.lang.String,com.company.Professor,int,int)">
<h3>Course</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="memberName">Course</span>&#8203;(<span class="arguments">java.lang.String&nbsp;name,
<a href="Professor.html" title="class in com.company">Professor</a>&nbsp;professor,
int&nbsp;credit,
int&nbsp;maxCapacity)</span></div>
<div class="block">create a new course with given name and professor and credit and maxCapacity</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the name of course</dd>
<dd><code>professor</code> - the professor of course</dd>
<dd><code>credit</code> - the credit of course</dd>
<dd><code>maxCapacity</code> - the maxCapacity of course</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails" id="method.detail">
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail" id="setName(java.lang.String)">
<h3>setName</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setName</span>&#8203;(<span class="arguments">java.lang.String&nbsp;name)</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - name of course</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getName()">
<h3>getName</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">getName</span>()</div>
<div class="block">get the name of course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>name field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="setProfessor(com.company.Professor)">
<h3>setProfessor</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setProfessor</span>&#8203;(<span class="arguments"><a href="Professor.html" title="class in com.company">Professor</a>&nbsp;professor)</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>professor</code> - professor of course</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getProfessor()">
<h3>getProfessor</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Professor.html" title="class in com.company">Professor</a></span>&nbsp;<span class="memberName">getProfessor</span>()</div>
<div class="block">get the professor of course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>professor field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getMaxCapacity()">
<h3>getMaxCapacity</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getMaxCapacity</span>()</div>
<div class="block">get the max capacity of course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>maxCapacity field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="setStudents(com.company.Student[])">
<h3>setStudents</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setStudents</span>&#8203;(<span class="arguments"><a href="Student.html" title="class in com.company">Student</a>[]&nbsp;students)</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>students</code> - set students of a course</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getStudents()">
<h3>getStudents</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Student.html" title="class in com.company">Student</a>[]</span>&nbsp;<span class="memberName">getStudents</span>()</div>
<div class="block">get the students of a course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of students field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getCurrentCapacity()">
<h3>getCurrentCapacity</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getCurrentCapacity</span>()</div>
<div class="block">get the current capacity of the course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>currentCapacity field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="getLabs()">
<h3>getLabs</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lab.html" title="class in com.company">Lab</a>[]</span>&nbsp;<span class="memberName">getLabs</span>()</div>
<div class="block">get the labs of the course</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of labs field</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="addLab(com.company.Lab)">
<h3>addLab</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">addLab</span>&#8203;(<span class="arguments"><a href="Lab.html" title="class in com.company">Lab</a>&nbsp;lab)</span></div>
<div class="block">add a lab to list of labs</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>lab</code> - the lab tht want to add</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="enrollStudent(com.company.Student)">
<h3>enrollStudent</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">enrollStudent</span>&#8203;(<span class="arguments"><a href="Student.html" title="class in com.company">Student</a>&nbsp;student)</span></div>
<div class="block">enrolling students who wants to get the lab</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>student</code> - student who want to get lab</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail" id="print()">
<h3>print</h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">print</span>()</div>
<div class="block">print the days when labs will be held
 and the first name and last name of students who have this course</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav" id="navbar.bottom">
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar.bottom.firstrow" class="navList" title="Navigation">
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Course.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<span class="skipNav" id="skip.navbar.bottom">
<!--   -->
</span></nav>
</footer>
</div>
</div>
</body>
</html>