<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="https://chem-bla-ics.linkedchemistry.info/feed/by_tag/uml.xml" rel="self" type="application/atom+xml" /><link href="https://chem-bla-ics.linkedchemistry.info/" rel="alternate" type="text/html" /><updated>2026-11-01T15:22:34+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/feed/by_tag/uml.xml</id><title type="html">chem-bla-ics</title><subtitle>Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.</subtitle><author><name>Egon Willighagen</name></author><entry><title type="html">UML diagram of CDK module dependencies</title><link href="https://chem-bla-ics.linkedchemistry.info/2005/12/06/uml-diagram-of-cdk-module-dependencies.html" rel="alternate" type="text/html" title="UML diagram of CDK module dependencies" /><published>2005-12-06T00:00:00+00:00</published><updated>2005-12-06T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2005/12/06/uml-diagram-of-cdk-module-dependencies</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2005/12/06/uml-diagram-of-cdk-module-dependencies.html"><![CDATA[<p>The code clean up after <a href="http://cdk.sf.net/">CDK</a>’s interfaces transition is in progress, and two
<a href="http://almost.cubic.uni-koeln.de/cdk/cdk_top/devel/modules/">CDK modules</a> are now independent
of the <em>data</em> module. After <a href="https://chem-bla-ics.linkedchemistry.info/2005/10/25/more-cdkinterfaces-updates.html">doing the <em>core</em> module <i class="fa-solid fa-recycle fa-xs"></i></a>,
the standard was next, and I finished this yesterday. The dependencies in CVS now look like (click it to get a larger view):</p>

<p>IMAGE LOST</p>

<p>This <a href="https://en.wikipedia.org/wiki/Unified_Modeling_Language">UML</a> diagram was made with <a href="http://uml.sourceforge.net/">Umbrello</a>, and the source is in
<a href="http://www-128.ibm.com/developerworks/xml/library/x-xmi/">XMI</a> in CVS.</p>

<p>I cannot stress enough the advantages of these changes:</p>

<ol>
  <li>the code is cleaner</li>
  <li>module dependencies are cleaner</li>
  <li>impossible to use methods outside the interface</li>
  <li>the algorithms are independent of the data classes</li>
</ol>

<p>The last advantage is really important: it allows alternative implementations of the data classes. For example, we could make debug
data classes, which, unlike the normal classes, do all sorts of checks when using methods of these classes. For example, they can
explicitely check that parameters are not null, of the right class, and generally make sense. This makes them, possibly, slower,
but also more type save, and as such great for debugging and development sessions.</p>

<p>Another important application of making the CDK library independent of the data classes (and only depending on the
<a href="http://cdk.sourceforge.net/api/org/openscience/cdk/interfaces/package-frame.html">interfaces</a>), is that we can have data classes
shared with other Java libraries, such as <a href="http://joelib.sf.net/">JOElib</a>, <a href="http://octetsource.com/">Octet</a>,
CML (<a href="http://sourceforge.net/mailarchive/forum.php?thread_id=9146642&amp;forum_id=8774">Jumbo 5.0 is out!</a>), and even proprietary libraries.
This approach is already used in the <a href="https://chem-bla-ics.linkedchemistry.info/2005/10/18/cdk-taverna-fully-recognized.html">CDK-Taverna <i class="fa-solid fa-recycle fa-xs"></i></a>
library, and I anticipate much wider use with the arrival of <a href="http://www.bioclipse.net/">Bioclipse</a>.</p>]]></content><author><name>Egon Willighagen</name></author><category term="cdk" /><category term="uml" /><summary type="html"><![CDATA[The code clean up after CDK’s interfaces transition is in progress, and two CDK modules are now independent of the data module. After doing the core module , the standard was next, and I finished this yesterday. The dependencies in CVS now look like (click it to get a larger view):]]></summary></entry></feed>