10 steps to write a cartridge

This article shows you how to write an AndroMDA cartridge in 10 distinct steps, using a sample cartridge which generates an Ant-like build script from a UML deployment model. This is why the tutorial cartridge is called "andromda-deployment".

The main process for analysis, design and implementation of cartridges

The basic process for cartridge development consists of the following steps:

  1. Analyze target technology
  2. Identify, design and generate PSM metaclasses
  3. Identify transformation rules
  4. Model, generate and write metafacades
  5. Write templates
  6. Write deployment descriptors
  7. Create UML profile as a modeling guide for your users
  8. Design cartridge test model using the profile
  9. Test cartridge
  10. Deploy cartridge

There are also some supporting activities that you need to do in order to get your cartridge and make others use it:

  1. Create empty cartridge and initialize build environment
  2. Think about versioning and releasing your cartridge in sync with the project teams who use it

We will now go one step after the other so that you can see how everything works.