This is the code for our final project in SFWE 301.
$ ./gradlew assemble
$ ./gradlew test --rerun-tasks
JAR file will can then be found at lib/build/libs/lib.jar
$ ./gradlew jar
The MatchingEngine
class can be used with either the provided scholarship and
applicant classes or any other class that implements the IApplicant
and
IScholarship
interfaces.
include java.utils.ArrayList;
include algorithm.MatchingEngine;
include algorithm.Scholarship;
include algorithm.Applicant;
include algorithm.MatchingResult;
public class Demo {
public static void main(String[] args) {
Applicant a = new Applicant();
Scholarship[] scholarships = new Scholarship[10];
...
ArrayList<MatchingResult<Scholarship>> results = MatchingEngine.match(a, scholarships);
}
}
include java.utils.ArrayList;
include algorithm.MatchingEngine;
include algorithm.IScholarship;
include algorithm.IApplicant;
include algorithm.MatchingResult;
class CustomApplicant implements IApplicant {
...
}
class CustomScholarship implements IScholarship {
...
}
public class CustomDemo {
public static void main(String[] args) {
CustomApplicant a = new CustomApplicant();
CustomScholarship[] scholarships = new CustomScholarship[10];
...
ArrayList<MatchingResult<CustomScholarship>> results = MatchingEngine.match(a, scholarships);
}
}