namespace EducationalLearningManagementSystem

features
	LearningManagementSystem {abstract}
		mandatory
			UserModule
				or
					Student
						Price 50
						Fun 8
					Instructor
						Price 60
						Fun 10
					Admin
						Price 70
						Fun 12
			CourseModule
				or
					PublicCourse
						Price 20
					PrivateCourse
						Price 30
					SponsoredCourse
						Price 40
			AssessmentModule
				alternative
					Quiz {Duration 60}
						mandatory
							SingleChoiceQuestion {Points 1}
							MultipleChoiceQuestion {Points 2}
					Test {Duration 120}
						mandatory
							FillInBlanksQuestion {Points 3}
							ShortAnswerQuestion {Points 4}
			ResourceModule
				or
					DocumentResource
						Price 5
					VideoResource
						Price 10
					LiveSessionResource
						Price 20
					PDFResource
						Price 7
			FeedbackModule
				alternative
					TextFeedback {Length 500}
					VoiceFeedback {Duration 300}
					VideoFeedback {Duration 600}
			ReportModule
				or
					SummaryReport
						Price 10
					DetailedReport
						Price 20
					AnalyticsReport
						Price 15
			CalendarModule
				optional
					EventCalendar
					TaskCalendar
					ExamSchedule
			MessagingModule
				alternative
					InboxMessaging {MaxMessages 1000}
					VoiceChatMessaging {MaxDuration 600}
					VideoChatMessaging {MaxDuration 1200}
			GamingModule
				alternative
					SinglePlayerGame {Price 5}
						mandatory
							EasyLevel
							MediumLevel
							HardLevel
					MultiplayerGame {Price 10}
						mandatory
							BattleMode
							CooperativeMode
 constraints
	B.Price + C.Price <= 100
	I.Duration < T.Duration
	SingleChoiceQuestion.Points + MultipleChoiceQuestion.Points > 2
	Duration(EasyLevel) * 2 < Duration(HardLevel)
	MaxMessages(InboxMessaging) > MaxDuration(VoiceChatMessaging)
	Price(DocumentResource) + Price(VideoResource) >= 15
	Points(FillInBlanksQuestion) - Points(ShortAnswerQuestion) <= 1
	MaxDuration(VideoChatMessaging) / Duration(EventCalendar) >= 2
	Price(SummaryReport) < Price(DetailedReport)
	Duration(BattleMode) > Duration(CooperativeMode)
	Price(EasyLevel) * Points(SingleChoiceQuestion) != Price(HardLevel)