Skip to content

Latest commit

 

History

History
71 lines (55 loc) · 1.48 KB

README.md

File metadata and controls

71 lines (55 loc) · 1.48 KB

Algorithm

This is the code for our final project in SFWE 301.

Building

$ ./gradlew assemble

Testing

$ ./gradlew test --rerun-tasks

Generating JAR

JAR file will can then be found at lib/build/libs/lib.jar

$ ./gradlew jar

Usage

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);
    }
}