Project

players.Project(self, name, capacity)

Project player class for instances of SA.

Parameters

Name Type Description Default
name object An identifier. This should be unique and descriptive. required
capacity int The maximum number of matches the project can have. required

Attributes

Name Type Description
supervisor Supervisor The supervisor that runs the project. Defaults to None. Controlled using the set_supervisor method.
prefs list of Player The project’s preferences. Inherited from supervisor and set via the Supervisor.set_prefs method.
matching list of Player The current matches of the project. An empty list if currently unsubscribed.

Methods

Name Description
set_supervisor Assign the supervisor to the project.

set_supervisor

players.Project.set_supervisor(supervisor)

Assign the supervisor to the project.

This method also update the supervisor’s project list.