Package eva.schedule

Examples of eva.schedule.Parent


    } catch (JDOMException e) {
      throw new InvalidWishesFile("could not find the events node in the XML file (" + parentsPath + ")", e);
    }
    nodeIter = nodeList.iterator();
   
    Parent parent;
    int id = 0;
    String firstName = null;
    String lastName = null;
    String eMail = null;
    String useEMail = null;
   
    while(nodeIter.hasNext()) {
      node = (Element) nodeIter.next();
     
      id = Integer.parseInt(node.getAttributeValue("id"));
      firstName = node.getAttributeValue("firstname");
      lastName = node.getAttributeValue("lastname");
      useEMail = node.getAttributeValue("use-email");
      if(useEMail.equals("true")) {
        eMail = node.getAttributeValue("email");
      }
      else {
        eMail = null;
      }
     
      if(firstName != null && lastName != null && id > 0) {
        parent = new Parent(id, firstName, lastName, eMail);
        eveningSchedule.add(parent);
       
        readParentVisits(parent, node);
      }
      else {
View Full Code Here


    setUpEvening();
  }
 
  @Before
  public void setUp() {
    parent = new Parent(1, "Amy", "A", "amy.a@parents.org");
    teacher = new Teacher(1, "Bert", "b");
   
    setUpParent();
    setUpTeacher();
  }
View Full Code Here

  }

  private int setUpOtherParents() throws ConflictingAppointmentsException {
    final int countOthers = 3;
    int i;
    Parent parent;
   
    otherParents = new Parent[countOthers];     
    for(i = 0; i < countOthers; i++) {
      parent = new Parent(i+2, "other Parent", Integer.toString(i), "otherParent" + i +"@theothers.org");
      VisitsChecklist visitsList = new VisitsChecklist();
      visitsList.add(new VisitWish(teacher, 1));
      Schedule schedule = new PersonSchedule(parent, visitsList, Evening.getEvening().getParentBufferSlots());
      parent.setSchedule(schedule);
      teacher.getSchedule().getVisitsChecklist().add(new VisitWish(parent, 1));
     
      otherParents[i] = parent;
    }
    //index 0 => 0 reserved in teacher schedule
View Full Code Here

TOP

Related Classes of eva.schedule.Parent

Copyright © 2018 www.massapicom. 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.