ScholarshipClass

import.java.util
import.java.util.*

Class Scholarship
{
	// Data members
	private int awardAmount;
	private int totalNumOfAwardees;
	private String scholarshipName;
	private Date deadline;   		//Maybe we could use enumerated data types for this?
	private Criteria schCriteria;
	private int counter;
	//List of students??

	//Functions

	public Scholarship()
	{
		awardAmount = 0;
		totalNumOfAwardees = 0;
		scholarshipName = ""
		deadline = Date();
		counter = 0;
	}
	
	public Scholarship(int amount, int limit, String name, Date d, int hours, double gpa, string major)
	{
		awardAmount = amount;
		totalNumOfAwardees = limit;
		scholarshipName = name;
		deadline = d;
		schCriteria(hours, gpa, major);
		counter = 0;
	}

	public boolean isFull()
	{
		return (counter == totalNumOfAwardees;)
	}

	public boolean onTime()
	{

		DateFormat dateFormat = new SimpleDataFormat("MM/dd/yyyy");
		Date date = new Date();
		Date currentDate = dateFormat.format(currentDate)

		Calendar cal1 = Calendar.getInstance();
		Calendar cal2 = Calendar.getInstance();
		cal1.setTime(currentDate);
		cal2.setTime(deadline);

		if(cal1.after(cal2))
			return true;
		else
			return false;
	}

	//checks wheter student can apply to scholarship
	//if students applies before deadline and meets criteria
	public boolean isEligible(Student stu)
	{
		
		if (onTime()==true && isFull() != false && stu.crit==schCriteria) //overloaded = operator for criteria
		{
			return true;
		}
		else
			return false;
	}

	//
	public boolean newApplicant()
	{
		//need database
		counter++;
	}
	
	//
	public void display()
	{
		//need database as well
	}

	public void setAwardAmount(int num){awardAmount = num;}
	public void setTotalNumOfAwardees(int num){totalNumOfAwardess = num;}
	public void setScholarshipName(String s){scholarshipName = s;}
	public void setDeadline(Date d){deadline = d;}

	public int getAwardAmount(){return awardAmount;}
	public int getTotalNumOfAwardees(){return totalNumberOfAwardees;}
	public String getScholarshipName(){return scholarshipName;}
	public Date getDeadline(){return deadline;}
}