Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to represent classes called via JNI on a UML class diagram

Currently I am finishing up my Android project which detects numbers in real time using OpenCV and Tesseract. I have created a class diagram which consists of all the Java classes, but the problem is I do not know how to add into it, a class written in C++ (which is called via JNI). I think it would be important to show calls to this C++ class that happen from the Java side, but I have no idea what the associations should look like, as I have never seen a class diagram that consisted of anything other than Java classes.

Any guidance would be appreciated. Thanks.

like image 513
silvestrairwave Avatar asked Feb 01 '26 22:02

silvestrairwave


1 Answers

I would define it as an interface with a stereotype, like <<native>>

see UML stereotypes for a brief description of stereotypes.

like image 197
Henrique Viecili Avatar answered Feb 03 '26 11:02

Henrique Viecili



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!