Examples of SiteCandidate


Examples of ke.go.moh.oec.mpi.SiteCandidate

        for (SiteMatch s : siteList) {
            Double score = s.computeScore(testNameMatch);
            // System.out.println("Site " + s.getSiteCode() + " " + s.getSiteName() + " score " + score);
            if (score != null) {
                if (siteCandidateSet.size() < MAX_SITE_SET_SIZE) {
                    siteCandidateSet.add(new SiteCandidate(s, score, identifier));
                    // System.out.println("---> " + s.getSiteCode() + " " + s.getSiteName() + " score " + score);
                    if (score < minScore) {
                        minScore = score;
                    }
                } else if (score > minScore) {
                    siteCandidateSet.remove(siteCandidateSet.last());
                    siteCandidateSet.add(new SiteCandidate(s, score, identifier));
                    // System.out.println("++++ " + s.getSiteCode() + " " + s.getSiteName() + " score " + score);
                    minScore = siteCandidateSet.last().getScore();
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.