"Criteria" is a simple yet useful structural design pattern. It is applied in the cases where there are different types of object of the same class and it is a requirement to fetch objects of certain kinds. The criteria pattern helps defining a class hierarchy which makes applying any possible criteria for the objects trivial. Adding a criteria to the existing set of criteria is as simple as adding a class.
Following is an example in Fortran:
GitHub - Criteria Pattern
Fork
Following is an example in Fortran:
GitHub - Criteria Pattern
No comments:
Post a Comment