nus-cs2103-AY2223S2 / forum

12 stars 0 forks source link

difference between NFR and multiplicity #407

Closed alextang809 closed 1 year ago

alextang809 commented 1 year ago
Screenshot 2023-04-24 at 3 50 11 PM

can "A course should be able to have up to 2000 students" also be interpreted as FR because of 0..2000 can also be treated as multiplicity?

damithc commented 1 year ago

Good question @alextang809

In some cases requirements can be in the grey area of FR and NFR. And as we always say, the correct categorization doesn't matter as much as fulfilling the requirement appropriately.

In this case, 'a course being able to contain students' is the functional part of the requirement (which we assume is implied or stated elsewhere), and the upper limit of the course size is a performance requirement (which is closer to NFRs). But yes, we can also argue that the max class size is part of the FR. The more important thing (in a real project) is to ask questions such as "how many students a typical course can have?", "what's the maximum possible class size?" etc. which we often forget to do.

BTW, an NFR can be give rise to a multiplicity being defined; there is no rule against that.

alextang809 commented 1 year ago

thanks prof! question resolved clearly now!