AFM-parser
This is an antlr4 implementation of the old fama plain-text format built from scratch, developed for retrocompatibility purposes.
%Relationships
Home : ControlSystemLighting [AntiTheftAlarm] [MoviePlayer] [Internet] [Contents] [ADA] ;
ControlSystem:[1,2]CellPhone ControlPanel;
MoviePlayer:[1,3]{HDTV42in HDTV32in PCPlayer} ;
Internet:[1,4]{EthernetWiFi_n WiFi_bg Mobile3G } ;
Contents:[1,2]{VideoOnDemand DMS } ;
VideoOnDemand : [Cache] Providers ;
Providers : [1,2]ProviderA ProviderB ;
%Constraints
VideoOnDemand REQUIRES Internet ;
VideoOnDemand REQUIRES ADA ;
Cache REQUIRES DMS ;
PCPlayer REQUIRES CellPhone ;
AntiTheftAlarm REQUIRES ControlPanel ;
Model 1: Feature Model Example
Load Model 1 in FAMA console using the load command. In case you need help about the available commands, use help command or read the reference manual. The following table shows the results of executing the difeerent operations.
Operation Result
Valid Yes
#Products 4928
Commonality(CellPhone) 3696
Errors No error
If you want to see how FAMA behaves when an error is found, introduce at the end of Model 1 the constraint ControlPanel REQUIRES CellPhone;. The result is a model where CellPhone is a false-mandatory feature. It means that it is mandatory for any product despite of being modelled as optional. When we calculate Its commonality (the number of products where a feature appears in), it is equal to the total number of products. It is the sign of mandatory features:
Operation Result
Valid Yes
#Products 3696
Commonality(CellPhone) 3696
Errors False-mandatory: CellPhone
Explanations [CTC-6],[to-CellPhone-ControlPanel-rel]
%Relationships
Home : ControlSystemLighting [AntiTheftAlarm] [MoviePlayer] [Internet] [Contents] [ADA] ;
ControlSystem:[1,2]CellPhone ControlPanel;
MoviePlayer:[1,3]{HDTV42in HDTV32in PCPlayer} ;
Internet:[1,4]{EthernetWiFi_n WiFi_bg Mobile3G } ;
Contents:[1,2]{VideoOnDemand DMS } ;
VideoOnDemand : [Cache] Providers ;
Providers : [1,2]ProviderA ProviderB ;
%Attributes
HDTV42in.ppp : [720,1080],0,0 ;
%Constraints
VideoOnDemand REQUIRES Internet ;
VideoOnDemand REQUIRES ADA ;
Cache REQUIRES DMS ;
PCPlayer REQUIRES CellPhone ;
AntiTheftAlarm REQUIRES ControlPanel ;
HDTV42in.ppp == 1080 IMPLIES Ethernet ;
Model 2: Model 1 extended with quality attributes
All credits to the original design corresponds to Jesús García Galán.
Metadata
Release files for afmparser 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| afmparser-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / afmparser-1.0.3-py3-none-any.whl
| Download URL | afmparser-1.0.3-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5cc98f7e8c66525aaee3cad172af14067ae2e91c0291c6c86d265272b9ed4b8
|
|
BLAKE2b-256 checksum How to use checksums |
3af4d82bf719779e8fccfe1e67a91daefb91fbc5ed6901e519ff2c574d097a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for afmparser 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.