namespace OnlineBankingApplication

features
	OnlineBanking {abstract}
		mandatory
			UserManagement {abstract}
				mandatory
					Authentication {abstract}
						or
							BasicAuth {Time 30, Complexity 1}
							TwoFactorAuth {Time 60, Complexity 2}
						optional
							FingerprintAuth {Time 45, Complexity 2}
							VoiceRecognitionAuth {Time 90, Complexity 3}
							FaceRecognitionAuth {Time 45, Complexity 3}
					Authorization {abstract}
						mandatory
							UserRoles {Levels 3, MaxUsers 100}
						optional
							RolePermissions {Complexity 2}
			TransactionManagement {abstract}
				mandatory
					PaymentProcessing {abstract}
						or
							CreditCardPayment {Time 2, Fee 0.5}
							DebitCardPayment {Time 3, Fee 1.0}
						optional
							BankTransferPayment {Time 1, Fee 0.1}
							ACHPayment {Time 4, Fee 0.2}
					FundTransfer {abstract}
						or
							DomesticTransfer {Time 2, Fee 0.5}
							InternationalTransfer {Time 3, Fee 1.5}
				optional
					BatchProcessing {Frequency 1, Volume 1000}
			CustomerManagement {abstract}
				mandatory
					CustomerProfile {Fields 5, Complexity 2}
				optional
					CustomerHistory {Years 10}
					AddressVerification {Countries 200}
			ReportingAndAnalytics {abstract}
				mandatory
					FraudDetection {Threshold 0.8, Interval 3600}
				optional
					AuditTrail {Retention 7}
					DataVisualization {Types 5, Interactive true}
					PerformanceMetrics {Metrics 10}
			SecurityManagement {abstract}
				mandatory
					VulnerabilityScan {Frequency 3600, Severity 5}
				optional
					DDoSProtection {Bandwidth 1000}
					FirewallConfiguration {Rules 200}
					IntrusionDetection {Sensitivity 4}
			MobileBanking {abstract}
				mandatory
					AppSecurity {Protocol SSL, SecurityLevel 3}
				optional
					PushNotifications {Types 5, Frequency 3600}
					FingerprintAuth {Time 30, Complexity 2}
					VoiceRecognitionAuth {Time 45, Complexity 3}
			ThirdPartyIntegrations {abstract}
				mandatory
					BankAPIIntegration {Providers 10, SecurityLevel 2}
				optional
					CryptoExchangeIntegration {Exchanges 5, Fees 0.001}
					PaymentGatewayIntegration {Gateways 7, Fees 0.02}
constraints
	FingerprintAuth.SecurityLevel == VoiceRecognitionAuth.Complexity
	SecurityManagement.Severity + MobileBanking.SecurityLevel > 4
	VulnerabilityScan.Frequency < AuditTrail.Retention * 3600
	CreditCardPayment.Fee + DebitCardPayment.Fee < BankTransferPayment.Fee * 2
	InternationalTransfer.Fee - DomesticTransfer.Fee == BatchProcessing.Volume / 1000
	UserRoles.Levels * UserRoles.MaxUsers > RolePermissions.Complexity * 10
	FraudDetection.Threshold < PerformanceMetrics.Metrics / 100
	DDoSProtection.Bandwidth + FirewallConfiguration.Rules > IntrusionDetection.Sensitivity * 50
	AppSecurity.SecurityLevel == BankAPIIntegration.SecurityLevel
	ProviderIntegration.Exchanges > PaymentGatewayIntegration.Gateways - 2
	DataVisualization.Types + AuditTrail.Retention > PerformanceMetrics.Metrics / 10
	AddressVerification.Countries < CustomerHistory.Years * 20
	PushNotifications.Frequency < AppSecurity.Protocol.length()
	TransactionManagement.Volume > UserRoles.MaxUsers * Frequency * 2
	FraudDetection.Interval - MobileBanking.AppSecurity.SecurityLevel > SecurityManagement.VulnerabilityScan.Severity * 3
	BatchProcessing.Frequency * CustomerProfile.Fields == ReportingAndAnalytics.DataVisualization.Types
	MobileBanking.PushNotifications.Types + ThirdPartyIntegrations.BankAPIIntegration.Providers < FraudDetection.Interval / 3600
	FingerPrintAuth.Complexity - VoiceRecognitionAuth.Time > UserRoles.Levels * 2
	TwoFactorAuth.Time + BankTransferPayment.Fee < DDoSProtection.Bandwidth - FirewallConfiguration.Rules * 10
	Authorization.RolePermissions.Complexity - Authentication.TwoFactorAuth.Time <= PaymentProcessing.ACHPayment.Fee * 50
	TransactionManagement.PaymentProcessing.CreditCardPayment.Time * CustomerProfile.Fields + Authorization.UserRoles.Levels > ReportingAndAnalytics.PerformanceMetrics.Metrics * 3
	UserManagement.CustomerHistory.Years / DataVisualization.Types < MobileBanking.FingerprintAuth.Time - ThirdPartyIntegrations.PaymentGatewayIntegration.Gateways
	FraudDetection.Interval * TransactionManagement.BatchProcessing.Frequency <= SecurityManagement.VulnerabilityScan.Severity + AppSecurity.SecurityLevel * 10
	ThirdPartyIntegrations.CryptoExchangeIntegration.Exchanges > PaymentProcessing.DebitCardPayment.Time - ThirdPartyIntegrations.BankAPIIntegration.Providers * 2