id.ac.unpar.siamodels.matakuliah.AIF402 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SIAModels Show documentation
Show all versions of SIAModels Show documentation
This library models various aspects of Universitas Katolik Parahyangan's
objects, such as mahasiswa (student), their modules, and their grades.
Theoretically supports all departments, but only Informatics department
is mostly complete.
package id.ac.unpar.siamodels.matakuliah;
import id.ac.unpar.siamodels.Mahasiswa;
import id.ac.unpar.siamodels.MataKuliah;
import id.ac.unpar.siamodels.InfoMataKuliah;
import id.ac.unpar.siamodels.matakuliah.interfaces.HasPrasyarat;
import java.util.List;
@InfoMataKuliah(nama = "Skripsi 2", sks = 6)
public class AIF402 extends MataKuliah implements HasPrasyarat {
@Override
public boolean checkPrasyarat(Mahasiswa mahasiswa, List reasonsContainer) {
if (mahasiswa.hasLulusKuliah("AIF401")) {
return true;
} else if (mahasiswa.calculateSKSLulus() >= 124) {
reasonsContainer.add("CATATAN: Mahasiswa harus mengambil juga AIF401 (tempuh bersama)");
return true;
} else {
reasonsContainer.add("Harus sudah mengambil AIF401 atau lulus 124 SKS");
return false;
}
}
}