/** * 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; }
/** * 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); }