namespace VideoStreamingService

features
	VideoStreamingPlatform {abstract}
		mandatory
			SocialIntegration {abstract}
				mandatory
					Facebook
					Twitter
					Instagram
				optional
					GooglePlus
			ContentLibrary
				mandatory
					Movies
						popular {Price 10, Resolution "HD", Duration 90}
						upcoming {Price 8, Resolution "HD", Duration 60}
						classic {Price 5, Resolution "SD", Duration 90}
					Serials
						tvSeries {Price 50, Resolution "HD", Seasons 4, Episodes 24}
						docuseries {Price 30, Resolution "SD", Seasons 3, Episodes 18}
			Advertising
				or
					BannerAds {CostPerView 0.05, AverageViewsPerDay 10000}
					VideoAds {CostPerSecond 0.25, AverageSecondsWatchedPerSession 30}
		PremiumFeatures
			mandatory
				HDRSupport {Price 15}
				SpeedControl
				VRMode {Price 25}
			optional
				AroundTheWorldStream {Price 40}
				CameraUploads {Price 10}
			ContentDiscovery {abstract}
				or
					BasedOnTrends {Price 7, Weight 3}
					BasedOnFavorites {Price 8, Weight 2}
					BasedOnFriends {Price 9, Weight 4}
		MobileCompatibility {abstract}
			mandatory
				iPhoneSupport {Price 10, Version "iOS14+"}
				AndroidSupport {Price 5, Version "AND10+"}
			alternative
				iPadProSupport {Price 8}
				SurfaceProSupport {Price 7}
		QualitySettings {abstract}
			mandatory
				VideoQuality {Resolution "1080p", FrameRate 60}
				AudioQuality {Bitrate 64, Channels 2}
			optional
				HDRSetting {Price 15}
				SurroundSound {Price 10}

constraints
	BannerAds.CostPerView * BannerAds.AverageViewsPerDay < VideoAds.CostPerSecond * VideoAds.AverageSecondsWatchedPerSession
	BasedOnTrends.Price + BasedOnFavorites.Price <= 15
	HDRSupport.Price + VRMode.Price < 40
	popular.Duration > classic.Duration
	CameraUploads => iPadProSupport.Price <= SurfaceProSupport.Price