



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Due Date: Sunday, December 20, 11:59 PM Submission: Via Gitlab and Canvas
Previously, your company successfully created a small product line by integrating three bots into a preprocessor-based architecture. You have played a bit with different configurations and given the generated bots to test customers who like the idea. Your company realizes that this way, it can shorten time-to-market for new robot firmware builds, deliver more value to individual stakeholders, and offer increased customization. In summary, your company is now more confident that establishing a configurable platform is the way to go. Unfortunately, it is quite clear that the preprocessor annotations will clutter the source code and lead to maintenance nightmares when more bots are integrated into a platform. You also believe that compile binding time is not necessary, and load-time configuration is more appropriate (perhaps, in the future, you will also support dynamic runtime binding). Preprocessors were a great start. However, now, a proper architecture is needed, facilitating more modularity of features. Your company has decided to create a framework and refactor the existing features into modules adhering to the framework. You are shifting from a compile-time, tool-based, annotation-based implementation (preprocessors) into a load-time, language-based, composition based approach based on a framework and design patterns. Following this assignment, you will be able to abstract lower-level variation into an object-oriented framework, judge about the applicability of design patterns and apply them when beneficial, and be able to modularize concerns (features) to the extent possible.
Your task is to establish an object-oriented framework for bots and realize your platform from the previous assignment with it. Specifically, you will start with the same feature model you refined in Assignment 3 and the three bots that we provided code for.
We recommend the use of FeatureIDE 3.7. You must use Java 8 or newer (we have tested with Java 8 and 15). We have tested with Eclipse 09-2020 and 12-2018. Therefore, we recommend the combination: (FeatureIDE 3.7, Java 15, Eclipse 09-2020). If you encounter issues, report them to your supervisor. While you could start with your Assignment 3 code and try to change the FeatureIDE composer via the project properties, you may find it easier to create a new project and copy the feature model and the code over incrementally when creating the framework. We suggest you enable Continuous Integration to avoid commits that break the build. The following tutorial will help^2. For reading the properties file, do not use FeatureIDE’s generated PropertyManager class, since that will try to read the file from the filesystem, which Robocode’s security manager will not allow. Instead:
● Feature model is consistent with the implementation. ● New variants are not equivalent to original bots, and are consistent with the feature model. ● Refactored bots and new variants still function as expected in the simulator. 4 G ● Design is described and a class diagram is present, features are mostly separated (some overlap may be present). ● Consistent integration strategy. Detailed explanation of the integration process. ● Correct use of design patterns, with detailed rationale for their use. ● LinearTargeting and another new feature are implemented and their implementation is described. ● Feature model is consistent with the implementation. ● New variants are not equivalent to original bots, and are consistent with the feature model. ● Refactored bots and new variants still function as expected in the simulator. 3 ● Design is described, features are mostly separated (some overlap may be present). ● Some explanation is made of the integration strategy. ● Correct use of design patterns, with some rationale for their use. ● LinearTargeting and another new feature are implemented and their implementation is described. ● Feature model is consistent with the implementation. ● New variants are not equivalent to original bots, and are consistent with the feature model. ● Refactored bots and new variants still function as expected in the simulator. U U ● Design is not described. ● Significant overlap between features. ● Integration strategy not properly explained. ● Design patterns used incorrectly, or not used at all. Lack of justification for their use. ● Implementation inconsistent with feature model. ● New bots do not exist, are equivalent to original bots, are not integrated successfully. ● Refactored or new bots do not function in the simulator.