Examples of Doctor


Examples of com.google.code.timetrail.backend.Doctor

  private Place[] places;

  @Before
  public void setUpRiver() {
    doctor = new Doctor();
    engineer = new Engineer();
    entrepreneur = new Entrepreneur();
    nutritionist = new Nutritionist();

    engine = new Engine();
View Full Code Here

Examples of com.google.code.timetrail.backend.Doctor

            if(selectedProfession.equals("Engineer")){
                player = new Engineer();
            } else if(selectedProfession.equals("Nutritionist")){
                player = new Nutritionist();
            } else if(selectedProfession.equals("Doctor")){
                player = new Doctor();
            } else if(selectedProfession.equals("Entrepreneur")){
                player = new Entrepreneur();
            }
            final List<Person> members = new ArrayList<Person>();
            player.setName(playerName);
View Full Code Here

Examples of com.google.code.timetrail.backend.Doctor

   * @see TestCase#setUp()
   */
  protected void setUp() throws Exception {
    //controller=new Control();
    personTested=new Person("testCase1");
    doctorTested= new Doctor();
    nutritionistTested= new Nutritionist();
    engineerTested= new Engineer();
    entrepreneurTested= new Entrepreneur();
    invPerson=new Inventory();
    invDoctor=new Inventory();
View Full Code Here

Examples of org.jboss.remoting.samples.transporter.complex.Doctor

   {
      // get the patient's ailment type and look for doctor that specializes
      String ailmentType = patient.getAilmentType();

      Information info = Information.getInstance();
      Doctor doc = info.getProviderBySpecialty(ailmentType);
      if(doc != null)
      {
         doc.addPatient(patient);
         return doc;
      }
      else
      {
         throw new NoDoctorAvailableException("No doctor available for ailment '" + ailmentType + "'");
View Full Code Here

Examples of org.jboss.remoting.samples.transporter.complex.Doctor

      try
      {
         // find a doctor that can help our patient.  Note, if none found, will throw an exception
         System.out.println("*** Looking for doctor that can help our patient...\n");
         Doctor doctor = providerProcessor.findDoctor(patient);

         // notice that list of patients now includes our patient, Bill Gates
         System.out.println("*** Found doctor for our patient.  Doctor found is:\n" + doctor);

         // assign doctor as patient's doctor
View Full Code Here

Examples of org.jboss.remoting.samples.transporter.complex.Doctor

/*    */
/* 47 */     ProviderInterface providerProcessor = (ProviderInterface)TransporterClient.createTransporterClient(this.locatorURI, ProviderInterface.class);
/*    */     try
/*    */     {
/* 53 */       System.out.println("*** Looking for doctor that can help our patient...\n");
/* 54 */       Doctor doctor = providerProcessor.findDoctor(patient);
/*    */
/* 57 */       System.out.println("*** Found doctor for our patient.  Doctor found is:\n" + doctor);
/*    */
/* 60 */       patient.setDoctor(doctor);
/* 61 */       System.out.println("*** Set doctor as patient's doctor.  Patient info is now:\n" + patient);
View Full Code Here

Examples of org.plugtree.training.model.Doctor

        Patient patient = new Patient("John","Doe");

        Nurse nurse = new Nurse("Mary","Douglas");
        ksession.setGlobal("nurse", nurse);
        Doctor doctor = new Doctor("Gregory","House");
        ksession.setGlobal("doctor", doctor);

        assertTrue(nurse.getNotifications().isEmpty());

        //First event
View Full Code Here

Examples of org.plugtree.training.model.Doctor

        Patient patient = new Patient("John","Doe");

        Nurse nurse = new Nurse("Mary","Douglas");
        ksession.setGlobal("nurse", nurse);
        Doctor doctor = new Doctor("Gregory","House");
        ksession.setGlobal("doctor", doctor);

        assertTrue(doctor.getNotifications().isEmpty());

        //First event
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(doctor.getNotifications().isEmpty());

        //Second event: 5 minutes after
        clock.advanceTime(5, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_BLOOD_PRESSURE));
        ksession.fireAllRules();

        assertEquals(1,doctor.getNotifications().size());
        doctor.clearNotifications();

        //Third event: 15 minutes after the last one
        clock.advanceTime(15, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(doctor.getNotifications().isEmpty());

        //Fourth event: 7 minutes after the last one
        clock.advanceTime(7, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_BLOOD_PRESSURE));
        ksession.fireAllRules();

        assertEquals(1,doctor.getNotifications().size());
        doctor.clearNotifications();

    }
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.