TRAP/J 2.1 Manual
Generating an Adapt-Ready Application
Follow these steps to generate an Adapt-Ready application. It will be helpful to look at the
Generator Interface schematic while going through these steps.
- Copy and paste the root packages of your application over to the TRAP-J-V-2.1 folder.
- Launch the Generator Interface by double-clicking on the generatorInterface.bat file.
- In the Generator Interface, click on the "Load Project" button.
- Browse to the TRAP-J-V-2.1 folder.
- Select your application's folder and click "Open." Your application's package structure
will be shown in the Application View on the left. You can expand package nodes to view the classes inside each package.
- Select some classes to make adaptable by checking them in the Application View. Additionally,
if you would like to adapt a Java library class, click the "Add Class" button and enter the fully qualified
name of the class you want to adapt (for example, java.net.MulticastSocket). After you've selected
your classes, you can save this selection for later use by saving a configuration file. To save a configuration
file, click the "Save Config As" button and name your config file when prompted.
- Once you're ready to generate the Adapt-Ready application, click the "Generate A-R Application" button.
After a few moments, the generated files will be available in the edu/fiu/cis/acrl/reflect/generated folder. There should
be four files for each class you selected to make Adapt-Ready: a source file for the class's WrapperLevel class, a source file
for the class's AbsorbingAspect (this file has a .aj extension), and the corresponding .class files for the WrapperLevel and AbsorbingAspect.