コード例 #1
0
 /**
  * Constructor
  */
 public TaskClass(String time, String studentName, String facilityName, String buildingName)
 {
     student.SetName(studentName);
     facility.SetName(facilityName);
     building.Name     = buildingName;
     this.Time         = time;
     this.StudentName  = student.GetName();
     this.FacilityName = facility.GetName();
     this.BuildingName = building.Name;
 }
コード例 #2
0
 /**
  * Method to add a student to a building
  */
 public void AddStudentToBuilding(String name, String buildingName)
 {
     student     = new StudentClass();
     student.ID += idSeeder;
     idSeeder++;
     student.SetName(name);
     student.GetName();
     student.SetBuildingName(buildingName);
     student.GetBuildingName();
     students.Add(student);
 }