博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
轻量级UML工具-UMLet
阅读量:6965 次
发布时间:2019-06-27

本文共 1663 字,大约阅读时间需要 5 分钟。

免费、开源,而且灰常好用的工具,这里就当加一个备注。免得忘了

 

如何在UMLet中表示static和final?

UMLet中表示static用下划线(对于method、function或者operation也用下划线代表static),个人感觉可以用斜体来表示final(对于method、function或者operation斜体代表abstract),如图

代码如下:

rball::BulletGenerator---bullet: Sphere-bulletSize: float-bulletCollisionShape: SphereCollisionShape// 用下划线表示static,用斜体表示final/_-DEFAULT_initSpeeds: float[]_/-initSpeed: float-initSpeedIndex: int-cam: Camera-mat: Material-rootNode: Node-bulletAppState: BulletAppState--+BulletGenerator(    cam: Camera    mat: Material    rootNode: Node    bulletAppState: BulletAppState): BulletGenerator--~getInitSpeed(): float~nextInitSpeed(): void~previousInitSpeed(): void~launchBullet(): void-getPhysicsSpace(): PhysicsSpace

 再如图:

代码:

/SimpleApplication/--/+simpleInitApp(): void/+simpleUpdate(tpf: float): void+simpleRender(rm: RenderManager): void

 

rball::GameMain--~bulletGenerator: BulletGenerator~matBullet: Material-bulletSpeedText: BitmapText~bulletSpeedTextListener BulletSpeedTextListener~positionBallGenerator: BallGenerator~randomBallGenerator: BallGenerator~terrain: TerrainQuad~matRock: Material~matWire: Material~wireframe: boolean#hintText: BitmapText-bulletAppState: BulletAppState--_+main(args: String[])_+setupKeys()+simpleInitApp()+simpleUpdate(tpf: float)-initCrossHairs()-loadHintText()-loadBulletSpeedText()-getWorldIntersection(): Vector3f-isInRadius(x: float, y: float, radius: float): boolean-calculateHeight(radius: float, heightFactor: float, x: float, z: float): float-adjustHeight(loc: Vector3f, radius: float, height: float)

 

UML类图中可见性(参考):

  public: +

  protected: #

  private: -

  package: ~

 

类图中,如果function的返回值为void怎么处理?

不要画为function(): void,直接画为function()即可

转载地址:http://jcisl.baihongyu.com/

你可能感兴趣的文章
CSS0 -- 静态、自适应、流式、响应式
查看>>
[Android Pro] 分析 Package manager has died
查看>>
[Android] osx下如何使用SublimeText阅读Android系统源码
查看>>
关于使用wcf架构分布式系统的一点想法
查看>>
PLSQL导出Oracle表结构
查看>>
Android 网络编程
查看>>
正则表达式
查看>>
Tomcat & SVN
查看>>
【教程】简易CDQ分治教程&学习笔记
查看>>
推荐系统学习03-SVDFeature
查看>>
用vue-scroller做上拉刷新,下拉加载的模板(简单明了,通用)
查看>>
BP算法双向传_链式求导最缠绵(深度学习入门系列之八)
查看>>
【新手教程】新版短信服务小白教程完全版(原阿里大于
查看>>
分布式与集群的区别
查看>>
oracle-一些查看性能相关的视图
查看>>
《京东峰值系统设计》读后感
查看>>
linux文件cache的框框架架以及相关的数据结构
查看>>
Java常用的集合类
查看>>
用百度地图API分析打交通大数据
查看>>
quartz表达式在线生成器
查看>>