Stud.IP  5.4
RandomAlgorithm Class Reference
Inheritance diagram for RandomAlgorithm:
AdmissionAlgorithm

Public Member Functions

 run ($courseSet)
 
 notifyRemainingUsers ($user_list, $course, $prio=null)
 
 countParticipatingUsers ($course_ids, $user_ids)
 
- Public Member Functions inherited from AdmissionAlgorithm
 run ($courseSet)
 

Member Function Documentation

◆ countParticipatingUsers()

countParticipatingUsers (   $course_ids,
  $user_ids 
)

How many users have gotten a seat in distribution?

Returns
Number of users who where lucky enough to be course members now.

◆ notifyRemainingUsers()

notifyRemainingUsers (   $user_list,
  $course,
  $prio = null 
)

Notify users about the fact that they couldn't get a seat and the waiting list is disabled in a course.

Parameters
Array$user_listUsers to be notified
Course$courseThe course without waiting list
int$prioUser's priority for the given course.

◆ run()

run (   $courseSet)

Runs the algorithm, thus distributing course seats.

Parameters
CourseSet$courseSetThe course set containing the courses that seats shall be distributed for.
See also
CourseSet

The documentation for this class was generated from the following file: