how to build a small application?

Submitted by zhangjuan on Tue, 2006-05-23 20:31.

I use IDE_Users_Guide_R2.2_Beta1.0.pdf to build a small application.but the guide doesn't introduce how to use service hierarchy.I can't complete an application.

Submitted by nv on Wed, 2006-05-24 12:03.

Yes, the user guide only describes the basics of the IDE. It does not get into modeling details.

Are you familiar with SAF AIS standards? If not, you may want to get familiar with the AMF spec or one of the presentations at saforum.org.

The poor man's guide to creating a simple application is as follows:

  • Start the IDE and make sure things are properly set up as per the user guide.
  • Create File -> New Project -> Select Clovis Project.
  • Start the 'component editor'.
  • Create one cluster, a node, a sg, a su, a component, a si and a csi by dragging and dropping them from the palette. These are the entity types in your model.
  • Then define the relationships (connectors) between them by using the auto-relationship tool.
  • You can right click on each entity and select properties to change any of their attributes. But you can leave them as-is for now.
  • Then go to Clovis Menu -> AMF configuration and create instances of the entity types you defined in the component editor.
  • Then go to Clovis menu -> SISP configuration. Select the appropriate ethernet interface for IOC.
  • Then go to Clovis menu -> validate project. This will show any errors in configuration. Fix them.
  • Go to Project menu -> clean. Select the project name you are working with and build your project.
  • If you have set up your ASP and IDE properly, the generated code will go into $ASP/models/$MODELNAME, where $ASP is the base directory of your ASP installation and $MODELNAME is the name you gave to your model.
  • Go to the $ASP directory and follow the build and run instructions there.

Note, the above is not comprehensive and I have ignored many configuration/modeling issues. Also, as I am writing this top of my head, I may have missed a few steps. But it should give you a general idea of what to do.

Good luck and let us know what progress you make.