CODE GENRATION For STUDENT MARK ANALYSIS

To generate the code for classes.
Procedure:
1. Open the class diagram in design model.
2. Go to tools menu and select options and then select notation tab and set the default Language.
3. To generate a code click the appropriate class, then select tools menu then go to
java1 J2EE then go to generate code.
4. In order to view the code select the class by right clicking and choose edit code.
CODE GENRATION

//Source file: C:\\jdk1.5\\bin\\kk\\analysismodel\\administrator.java
Package analysismodel;
public class administrator
{
public student theStudent;
/**
* @roseuid 3EA3D3F10213
*/
public administrator()
{
}

/**
* @roseuid 3EA3A7C001E4
*/
public void admin()
{
}
}

Result:

Thus the code was generated for the classes successfully CS1403- CASE TOOLS LAB.

Related post