rCOS

Refinement of Component and Object Systems

  • Increase font size
  • Default font size
  • Decrease font size

Java Code Generation

E-mail Print PDF

The rCOS model "CoCoME-exe-2" is translated into Java codes automatically, and the generated codes are used by a client program, "CashDeskGUI".

  1. Create a new project:
  2. Right click the "CoCoME-2.uml" and select the menu " rCOS->Export UML as java file" :
  3. Select a directory as the output place. For example, directory "src-cocome" in project "code-gen":
  4. The generated java codes:
  5. Import the client codes using the generated codes:

    an external jar used by the client codes should be added:
  6. Right click the "CashDeskGUI.java" and select the menu "Run as->Java Application":
  7. The runtime snapshot of the client codes "CashDeskGUI.java":
(Developed by WANG Zheng, ECNU Shanghai, China, for the rCOS group)
Last Updated on Sunday, 18 October 2009 22:26