473,378 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

modeling python with UML

Hi,

I was trying to model some classes, modules and packages of mine with UML
and got the following problem:

Packages would be moduled as UML packages i presume.

If your module contains only functions you can model them as static class
methods, either by writing a dummy class that takes them up or by
representing the file as a class.

However, if you module contains several classes - what do you do then?

Ciao
Uwe
Jul 18 '05 #1
2 2986
Uwe Mayer wrote:
I was trying to model some classes, modules and packages of mine with UML
and got the following problem:

Packages would be moduled as UML packages i presume.

If your module contains only functions you can model them as static class
methods, either by writing a dummy class that takes them up or by
representing the file as a class.

However, if you module contains several classes - what do you do then?


Just mark the class containing the global functions and variables with the
<<utility>> stereotype? A naming convention could be helpful, too.

Peter

Jul 18 '05 #2
On Mon, 23 Feb 2004 11:32:30 +0100, Uwe Mayer <me*****@hadiko.de>
wrote:
Packages would be moduled as UML packages i presume.
Could be, or as components since they are physical deployable
entities...
If your module contains only functions you can model them as static class
methods, either by writing a dummy class that takes them up or by
representing the file as a class.
Yes, thats one approach, or they could be an inteface to your
component.
However, if you module contains several classes - what do you do then?


UML packages are logical containers that can contain any other
UML item (classes, usecases, components, other packages...). Thus
a package can contain several classes. What exactly do you
perceive to be the problem?

Alan G.

Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bishara Gabriel | last post by:
I encourage feedback from all parties and especially those which would like to be directly involved (I may include you in the grant proposal and budget). Send me your comments! -------> ...
0
by: Redd | last post by:
The following is a technical report on a data modeling project that was recently assigned to me by my professor. I post it so that anyone else who is studying databases and data modeling can have...
0
by: Joseph H Allen | last post by:
I've discovered that the C preprocessor is powerful enough to create a cheap object modeling language for XML (or any structured data format). Check out http://world.std.com/~jhallen/sdu.html The...
1
by: Markus Seibold | last post by:
Hi, I am looking for an open source (free) data modeling tool for PostgreSQL. It should - if possible - support: - E-R-Modelling - relational data model / modeling - (GUI SQL interface to...
1
by: Mike | last post by:
I'm starting up on big project that will take much of my time in next year or two. Until now I was mostly self-employed on small projects so I didn't spent so much time modeling system before...
4
by: shalafi | last post by:
Looking for a good, cheap (preferrably free) UML modeling tool. Used Jumli in the past, has everything i want but it isnt terribly stable and doesnt look as if they will have a new version anytime...
1
by: Ronald S. Cook | last post by:
I'm learning DeKlarit, a RAD modeling tool that creates business and data logic to speed development. It seems pretty cool, but I'm just so used to writing these layers myself. I can understand...
1
by: Nate | last post by:
Modeling of Lookup Values and ORM I know this is not the correct forum for object design patterns, but I haven't found any design related newsgroups. Scenario: Customers (table)...
1
by: orpap | last post by:
Just saw at amazon.com reference to the following book that might be available later this year: Financial Modeling with Python (Hardcover) by Shayne Fletcher (Author), Christopher Gardner...
25
by: Thomas R. Hummel | last post by:
I'm going to try to describe this situation as best as I can, but if anything is unclear please let me know. Some of this database was already in place before I arrived on the scene, and I don't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.