如何设计带有非面向对象部分的 UML 类图? [英] How to design an UML class diagramm with non object oriented parts?

查看:25
本文介绍了如何设计带有非面向对象部分的 UML 类图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ABAP 中编码并实现了模板方法模式.我喜欢为此绘制一些 UML 类图.在 UML 中为类做到这一点是没有问题的.但是我的类是在功能模块(SAP 特定术语)中实现的,它就像一个独立的方法,我用来使实现可用于远程过程调用.

I´m coding in ABAP and implemented a template method pattern. I like to draw some UML class diagramm for this. To do this in UML for the classes is no problem. But my class is implemented in a function module (SAP specific terms), its like an stand alone method which I use to make the implementation available to an Remote Procedure Call.

那么在一个图表中获得非 oo 功能模块和 oo 类的最佳可能性是什么?有任何想法吗?

So what's the best possibility to get the non oo function module and the oo classes in one diagramm. Any ideas?

您是否允许混合使用组件图和类图?

Are you allowed to mix component and class diagrams?

推荐答案

将功能组织在逻辑组(例如它们的功能组)中.为每个逻辑组创建一个实用程序类,并将函数作为这些实用程序类的静态成员.

Organize the functions in logical groups (e.g. their function groups). Create a utility class for each logical group and put the functions as static members of those utility classes.

这篇关于如何设计带有非面向对象部分的 UML 类图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆