You are on page 1of 8

Ministry of Education and Science of Ukraine

National Technical University of Ukraine


«Igor Sikorsky Kyiv Polytechnic Institute»
Faculty of Informatics and Computer Engineering
Department of Computer Engineering

Laboratory work №2
Discipline: «Software Engineering»
Theme: «Graphic notation of UML, documentation of project»

EXECUTED:
Student of second course
FICE group IO-11
Volodin Valerii
Number of Student book 1105
Variant - 7-0

CHECKED:
Associate Professor
Department of Computer Engineering
PhD, SRS
Antoniuk A. I.

Kyiv - 2022
AIM of STUDY

Familiarization with the types of UML diagrams.


Getting the basic skills of using the UML class diagram.
Gaining skills of using automation tools for UML modeling using the example of
ArgoUML/Umbrello.
Documenting a project using JavaDoc.

TASK

TASK VARIANT: 7-0


Generalization is the variant 7: If3 <- Ifl; Ifl <- If2; Сl3 <- Сl1;
Aggregating is the variant 0: If1 <- Cl1; Cl3 <- Cl2; Cl3 <- Cl3;

A CLASS DIAGRAM IS SKETCH FOR PROGRAM CODE GENERATION


(PROGRAM CODE DONE TO DEVELOPMENT)

PROGRAM CODE
package com.lab111.labwork2;

import java.util.Vector;
/**
* Class 1
* @author Valera
*/
public class Cl1 extends Cl3 implements IF1 {

public Vector myIf1;

@Override
public void meth3() {
System.out.println("Cl1.meth3()");

@Override
public void meth1() {
System.out.println("Cl1.meth1()");

}
package com.lab111.labwork2;
import java.util.Vector;

/**
* Class 2
* @author Valera
*/
public class Cl2 implements IF2 {

public Vector myCl3;

@Override
public void meth1() {
System.out.println("Cl2.meth1()");

@Override
public void meth3() {
System.out.println("Cl2.meth3()");

@Override
public void meth2() {
System.out.println("Cl2.meth2()");

}
package com.lab111.labwork2;

import java.util.Vector;

/**
* Class 3
* @author Valera
*/
public class Cl3 implements IF3 {

public Vector myCl3;

@Override
public void meth3() {
System.out.println("Cl3.meth3()");

}
package com.lab111.labwork2;

/**
* Interface 1
* @author Valera
*
*/

public interface IF1 extends IF3 {

public void meth1();

}
package com.lab111.labwork2;

/**
* Interface 2
* @author Valera
*/
public interface IF2 extends IF1 {

public void meth2();

}
package com.lab111.labwork2;

/**
* Interface 3
* @author Valera
*/
public interface IF3 {

public void meth3();

build.xml
<!-- ==================== generate doc by javadoc Target
================================== -->

<target name="makeJavadoc">
<javadoc windowtitle="Test API" use="true"
author="true" destdir="doc" sourcefiles="src/Cl1.java"></javadoc>
</target>
}
RESULTS OF PROGRAM TESTING

Index
C I M 
All Classes and Interfaces|All Packages

C
Cl1 - Class in com.lab111.labwork2
Class 1
Cl1() - Constructor for class com.lab111.labwork2.Cl1
 
Cl2 - Class in com.lab111.labwork2
Class 2
Cl2() - Constructor for class com.lab111.labwork2.Cl2
 
Cl3 - Class in com.lab111.labwork2
Class 3
Cl3() - Constructor for class com.lab111.labwork2.Cl3
 
com.lab111.labwork2 - module com.lab111.labwork2
 
com.lab111.labwork2 - package com.lab111.labwork2
 

I
IF1 - Interface in com.lab111.labwork2
Interface 1
IF2 - Interface in com.lab111.labwork2
Interface 2
IF3 - Interface in com.lab111.labwork2
Interface 3

M
meth1() - Method in class com.lab111.labwork2.Cl1
 
meth1() - Method in class com.lab111.labwork2.Cl2
 
meth1() - Method in interface com.lab111.labwork2.IF1
 
meth2() - Method in class com.lab111.labwork2.Cl2
 
meth2() - Method in interface com.lab111.labwork2.IF2
 
meth3() - Method in class com.lab111.labwork2.Cl1
 
meth3() - Method in class com.lab111.labwork2.Cl2
 
meth3() - Method in class com.lab111.labwork2.Cl3
 
meth3() - Method in interface com.lab111.labwork2.IF3
 
myCl3 - Variable in class com.lab111.labwork2.Cl2
 
myCl3 - Variable in class com.lab111.labwork2.Cl3
 
myIf1 - Variable in class com.lab111.labwork2.Cl1
 
C I M 
All Classes and Interfaces|All Packages

Build.xml running
Buildfile: C:\Users\valer\eclipse-workspace\com.lab111.labwork2\build.xml
build-subprojects:
init:
build-project:
[echo] com.lab111.labwork2: C:\Users\valer\eclipse-workspace\
com.lab111.labwork2\build.xml
build:
BUILD SUCCESSFUL
Total time: 382 milliseconds
CONCLUSIONS

Became familiar with Graphic notation of UML and documenting of projects.


Got skills of work with ArgoUML.
The corresponding test program was worked out.
The successful job of the test program performances given above confirm the
rightness of the chosen decisions. The ultimate aim of study was attained.

You might also like