Ejemplo n.º 1
0
  private void hire_nurses() {
    /*
    public Nurse(String userName, String password, String firstName, String lastName, String middleName,
             String dateOfBirth, String sex, String socialSecurity,  String emailAddress, String mobilePhone
     */

    Person aNurse =
        new Nurse(
            "nurseUserName",
            "nusrePass",
            "Carla",
            "Turk",
            "A",
            "dateofb",
            "f",
            "asdfadfsocial",
            "email",
            "1212",
            4);
    Person bNurse =
        new Nurse(
            "nurseUserNbme",
            "nusrePbss",
            "Laverne",
            "Roberts",
            "B",
            "dbteofb",
            "f",
            "bsdfbdfsocibl",
            "embil",
            "1212",
            4);
    Person cNurse =
        new Nurse(
            "nurseUserNcme",
            "nusrePcss",
            "Elliot",
            "Reid",
            "C",
            "dcteofb",
            "f",
            "csdfcdfsocicl",
            "emcil",
            "1212",
            4);
    Person dNurse =
        new Nurse(
            "nurseUserNdme",
            "nusrePdss",
            "The",
            "Todd",
            "D",
            "ddteofb",
            "f",
            "dsdfddfsocidl",
            "emdil",
            "1212",
            4);
    Person eNurse =
        new Nurse(
            "nurseUserNeme",
            "nusrePess",
            "Ted",
            "Buckland",
            "E",
            "deteofb",
            "f",
            "esdfedfsociel",
            "emeil",
            "1212",
            4);
    Person fNurse =
        new Nurse(
            "nurseUserNfme",
            "nusrePfss",
            "Dorian",
            "Dorian",
            "F",
            "dfteofb",
            "f",
            "fsdffdfsocifl",
            "emfil",
            "1212",
            4);

    allStaff.put(aNurse.getUserName(), aNurse);
    allStaff.put(bNurse.getUserName(), bNurse);
    allStaff.put(cNurse.getUserName(), cNurse);
    allStaff.put(dNurse.getUserName(), dNurse);
    allStaff.put(eNurse.getUserName(), eNurse);
    allStaff.put(fNurse.getUserName(), fNurse);
  }
Ejemplo n.º 2
0
  private void generate_users() {
    Person a =
        new Patient(
            "a",
            "password",
            "Sterling",
            "Archer",
            "1/1/92",
            "123-123-123",
            "Address",
            "City",
            "310-123-123",
            "323-123-123",
            "email.com",
            "aEC",
            "AEC",
            "123-123-123",
            "323-123-122",
            "InsuranceProvider",
            "InsuranceAccount",
            "m",
            "CA",
            "20",
            "middle",
            "spouse",
            "95112",
            5);
    allUsers.put(a.getUserName(), a);

    Person b =
        new Patient(
            "b",
            "password",
            "Ray",
            "Gillette",
            "1/1/91",
            "223-124-123",
            "Address",
            "City",
            "311-123-123",
            "323-125-123",
            "email.com",
            "bEC",
            "BEC",
            "123-153-123",
            "323-124-122",
            "InsuranceProvider",
            "InsuranceAccount",
            "m",
            "CA",
            "21",
            "middle",
            "spouse",
            "95112",
            5);
    allUsers.put(b.getUserName(), b);

    Person c =
        new Patient(
            "c",
            "password",
            "Lana",
            "Kane",
            "1/1/93",
            "253-124-123",
            "Address",
            "City",
            "111-123-123",
            "326-122-123",
            "email.com",
            "cEC",
            "CEC",
            "123-753-523",
            "323-124-132",
            "InsuranceProvider",
            "InsuranceAccount",
            "m",
            "CA",
            "26",
            "middle",
            "spouse",
            "95112",
            5);
    allUsers.put(c.getUserName(), c);

    Person d =
        new Patient(
            "d",
            "password",
            "Doctor",
            "Krieger",
            "9/1/93",
            "953-924-123",
            "Address",
            "City",
            "191-123-123",
            "326-822-193",
            "email.com",
            "dEC",
            "DEC",
            "123-853-528",
            "393-124-130",
            "InsuranceProvider",
            "InsuranceAccount",
            "f",
            "CA",
            "29",
            "middle",
            "spouse",
            "95112",
            5);
    allUsers.put(d.getUserName(), d);

    Person e =
        new Patient(
            "e",
            "password",
            "Cyril",
            "Figgis",
            "9/8/93",
            "883-924-123",
            "Address",
            "City",
            "198-123-123",
            "326-822-883",
            "email.com",
            "eEC",
            "EEC",
            "123-853-828",
            "393-124-138",
            "InsuranceProvider",
            "InsuranceAccount",
            "f",
            "CA",
            "27",
            "middle",
            "spouse",
            "95112",
            5);
    allUsers.put(e.getUserName(), e);

    Person James =
        new Patient(
            "James",
            "1",
            "James",
            "Nguyen",
            "9/8/93",
            "88211-924-123",
            "Address",
            "City",
            "198-123-123",
            "326-822-8823",
            "jamesemail.com",
            "eEC",
            "EEC",
            "123-853-8228",
            "3923-124-138",
            "InsuranceProvider",
            "InsuranceAccount",
            "m",
            "CA",
            "20",
            "",
            "",
            "94542",
            5);
    allUsers.put(James.getUserName(), James);

    Person Joel =
        new Patient(
            "Joel",
            "Password",
            "Joel",
            "Santiago",
            "12/31/86",
            "123-45-678",
            "123 Main St",
            "Pleasanton",
            "198-123-123",
            "326-822-8823",
            "joelsemail.com",
            "eEC",
            "EEC",
            "123-853-8228",
            "3923-124-138",
            "InsuranceProvider",
            "InsuranceAccount",
            "m",
            "CA",
            "26",
            "",
            "",
            "94588",
            5);
    allUsers.put(Joel.getUserName(), Joel);
  }
Ejemplo n.º 3
0
  private void hire_doctors() {
    /*
    public Doctor(String userName, String password, String firstName, String lastName, String middleName,
            String dateOfBirth, String sex, String socialSecurity,  String emailAddress, String mobilePhone,
    int skillId, int yearsOfExperience, Date hiredDate, int departmentID) {
    */

    Person aDoc =
        new Doctor(
            "aDoc",
            "aDocPass",
            "Walter",
            "White",
            "A",
            "dateof",
            "m",
            "social",
            "doc@email",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person bDoc =
        new Doctor(
            "bDoc",
            "bDocPbss",
            "Jesse",
            "Pinkman",
            "B",
            "dbteof",
            "m",
            "socibl",
            "doc@embil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person cDoc =
        new Doctor(
            "cDoc",
            "cDocPcss",
            "Saul",
            "Goodman",
            "C",
            "dcteof",
            "m",
            "socicl",
            "doc@emcil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person dDoc =
        new Doctor(
            "dDoc",
            "dDocPdss",
            "Gustavo",
            "Fring",
            "D",
            "ddteof",
            "m",
            "socidl",
            "doc@emdil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person eDoc =
        new Doctor(
            "eDoc",
            "eDocPess",
            "Skylar",
            "White",
            "E",
            "deteof",
            "m",
            "sociel",
            "doc@emeil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person fDoc =
        new Doctor(
            "fDoc",
            "fDocPfss",
            "Mike",
            "Ehrmantraut",
            "F",
            "dfteof",
            "m",
            "socifl",
            "doc@emfil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    Person zDoc =
        new Doctor(
            "zDoc",
            "zDocPzss",
            "Hank",
            "Schrader",
            "G",
            "dzteof",
            "m",
            "socizl",
            "doc@emzil",
            "mobile1232",
            2,
            1,
            "3",
            3,
            2);
    allStaff.put(aDoc.getUserName(), aDoc);
    allStaff.put(bDoc.getUserName(), bDoc);
    allStaff.put(cDoc.getUserName(), cDoc);
    allStaff.put(dDoc.getUserName(), dDoc);
    allStaff.put(eDoc.getUserName(), eDoc);
    allStaff.put(fDoc.getUserName(), fDoc);
    allStaff.put(zDoc.getUserName(), zDoc);
  }
Ejemplo n.º 4
0
  private void hire_heads() {
    /*
    public Head(String userName, String password, String firstName, String lastName, String middleName,
            String dateOfBirth, String sex, String socialSecurity,  String emailAddress, String mobilePhone,
    int yearsOfExperience, int skillID, String hiredDate) {
            */

    Person aHead =
        new Head(
            "aHeadusername",
            "aHeadpassword",
            "Bob",
            "Kelso",
            "A",
            "dateofbirth",
            "m",
            "social",
            "email@email",
            "mobile",
            3,
            3,
            "1",
            3);
    Person bHebd =
        new Head(
            "bHebdusernbme",
            "bHebdpbssword",
            "Perry",
            "Cox",
            "B",
            "dbteofbirth",
            "m",
            "socibl",
            "embil@embil",
            "mobile",
            3,
            3,
            "1",
            3);
    Person cHecd =
        new Head(
            "cHecduserncme",
            "cHecdpcssword",
            "Chris",
            "Turk",
            "C",
            "dcteofbirth",
            "m",
            "socicl",
            "emcil@emcil",
            "mobile",
            3,
            3,
            "1",
            3);
    Person dHedd =
        new Head(
            "dHedduserndme",
            "dHeddpdssword",
            "Jordan",
            "Sullivan",
            "D",
            "ddteofbirth",
            "m",
            "socidl",
            "emdil@emdil",
            "mobile",
            3,
            3,
            "1",
            3);
    Person eHeed =
        new Head(
            "eHeeduserneme",
            "eHeedpessword",
            "Peter",
            "Hooch",
            "E",
            "deteofbirth",
            "m",
            "sociel",
            "emeil@emeil",
            "mobile",
            3,
            3,
            "1",
            3);
    Person fHefd =
        new Head(
            "fHefdusernfme",
            "fHefdpfssword",
            "Doug",
            "Murphy",
            "F",
            "dfteofbirth",
            "m",
            "socifl",
            "emfil@emfil",
            "mobile",
            3,
            3,
            "1",
            3);

    allStaff.put(aHead.getUserName(), aHead);
    allStaff.put(bHebd.getUserName(), bHebd);
    allStaff.put(cHecd.getUserName(), cHecd);
    allStaff.put(dHedd.getUserName(), dHedd);
    allStaff.put(eHeed.getUserName(), eHeed);
    allStaff.put(fHefd.getUserName(), fHefd);
  }
Ejemplo n.º 5
0
  private void hire_surgeons() {

    /*
    public Surgeon(String userName, String password, String firstName, String lastName, String middleName,
            String dateOfBirth, String sex, String socialSecurity,  String emailAddress, String mobilePhone,
    int yearsOfExperiance, int departmentID, int skillID);
            */
    Person aSurgeon =
        new Surgeon(
            "aSurgUser",
            "aSurPW",
            "Michael",
            "Bluth",
            "M",
            "surgDateOfBirth",
            "m",
            "social102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);
    Person bSurgeon =
        new Surgeon(
            "bSurgUser",
            "bSurPW",
            "GOB",
            "Bluth",
            "R",
            "surgDbteOfBirth",
            "m",
            "socibl102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);
    Person cSurgeon =
        new Surgeon(
            "cSurgUser",
            "cSurPW",
            "George",
            "Bluth Sr.",
            "L",
            "surgDcteOfBirth",
            "m",
            "socicl102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);
    Person dSurgeon =
        new Surgeon(
            "dSurgUser",
            "dSurPW",
            "Buster",
            "Bluth",
            "N",
            "surgDdteOfBirth",
            "m",
            "sodidl102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);
    Person eSurgeon =
        new Surgeon(
            "eSurgUser",
            "eSurPW",
            "George Michael",
            "Bluth",
            "M",
            "surgDeteOfBirth",
            "m",
            "soeiel102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);
    Person fSurgfon =
        new Surgeon(
            "fSurgUsfr",
            "fSurPW",
            "Tobias",
            "Funke",
            "G",
            "surgDftfOfBirth",
            "m",
            "sofifl102323",
            "*****@*****.**",
            "102302",
            5,
            3,
            1);

    allStaff.put(aSurgeon.getUserName(), aSurgeon);
    allStaff.put(bSurgeon.getUserName(), bSurgeon);
    allStaff.put(cSurgeon.getUserName(), cSurgeon);
    allStaff.put(dSurgeon.getUserName(), dSurgeon);
    allStaff.put(eSurgeon.getUserName(), eSurgeon);
    allStaff.put(fSurgfon.getUserName(), fSurgfon);
  }