Hi I am working on a program to perform analysis on dependencies of systems.
For example a system with the following system requirements will be in a text file as exampled below
I added comments to the input file ( - Comment) the comments will not be present in the input text files and can be ignored.
2 - Denotes number of Packages to be installed
A,1 - Package 1 to be installed
B,1 - Package 2 to be installed
3 - Denotes number of Dependencies to be installed (P1 , V1 , P2, V2) - package p1 in version v1 depends on p2 in version v2
A,1,B,1 - Dependency 1
A,2,B,2 - Dependency 2
C,1,B,1 - Dependency 3
My goal is to perform analysis of various text files with similar input to determine Validation for System configuration..
If more than one version of a package is required the installation is invalid. Your task is to check if installing the packages (along with all packages required by dependencies) is valid
The sample input above is valid, but the sample input below is invalid as A,1 requires B,1 and we are trying to install B,2.
2
A,1 B,2
3
A,1,B,1
A,2,B,2
C,1,B,1
I am trying to determine the best course of action to perform analysis on the text files to determine Success and Failure configurations.
I would appreciate any input on how I can design a software solution...
Thanks
For example a system with the following system requirements will be in a text file as exampled below
I added comments to the input file ( - Comment) the comments will not be present in the input text files and can be ignored.
2 - Denotes number of Packages to be installed
A,1 - Package 1 to be installed
B,1 - Package 2 to be installed
3 - Denotes number of Dependencies to be installed (P1 , V1 , P2, V2) - package p1 in version v1 depends on p2 in version v2
A,1,B,1 - Dependency 1
A,2,B,2 - Dependency 2
C,1,B,1 - Dependency 3
My goal is to perform analysis of various text files with similar input to determine Validation for System configuration..
If more than one version of a package is required the installation is invalid. Your task is to check if installing the packages (along with all packages required by dependencies) is valid
The sample input above is valid, but the sample input below is invalid as A,1 requires B,1 and we are trying to install B,2.
2
A,1 B,2
3
A,1,B,1
A,2,B,2
C,1,B,1
I am trying to determine the best course of action to perform analysis on the text files to determine Success and Failure configurations.
I would appreciate any input on how I can design a software solution...
Thanks