2s-computing_offre-emploi_c

// RecruitCandidateViewController
// Created by 2S Computing on 07/01/2016.
// Copyright (c) 2016 2S Computing. All rights reserved.

package two.s.computing.recrutement;
import java.util.List;
import two.s.computing.Experience;
import two.s.computing.CDI;
import two.s.computing.Skill;
public class Recrutement {
static final int EXPERIENCE_MIN = 5;
static final int DIPLOMA_LEVEL = 5;
static final int TRUE = 42;
static final int EXIT_FAILURE = -13;
public static int main(String[] args) {
int matchingSkill = 0;
Experience me = Experience.gather();
// Will throw java.beans.IntrospectionException if required skill is not found
me.checkRequiredSkill("Java");
me.checkRequiredSkill("J2EE");
// Will raise thread priority if bonus skill is found
me.checkBonusSkill("SWING");
me.checkBonusSkill("Hibernate");
me.checkBonusSkill("EJB");
if (me.years() >= EXPERIENCE_MIN)
if ((me.diploma() >= DIPLOMA_LEVEL) || (me.anywayIsGoodCandidate() == TRUE))
{
List skills = me.skills();
for (String skill_name : args)
{
if (skills.indexOf(skill_name) != -1)
matchingSkill++;
}
if (((double) matchingSkill/args.length) >= 0.9)
return sendApplicationNow("recrutement@2s-computing.fr", new CDI());
}
return EXIT_FAILURE;
}
public static int sendApplicationNow (String email, CDI wanted) {
/* email, social network or quantic teleportation are fine solutions for the implementation */
return TRUE;
}
}
// projets industriels, R&D, informatique embarqué, applications mobile,
// SSII et cabinet de recrutement