473,813 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help me to design.

Dear All,

I want to develop an engine library for a particular purpose such as a
physical phenomenon simulation. The input is the required physical data
and geometry. The output is the simulation results. Also some
postprocessing are required on the results.

I have a rough design like this:

Three classes: CInterface, CEngine, CPostprocessing

CInterface records all the input data and output results. So it can
provide input to the CEngine, and sace the sumulation results from
CEngine.

Postprocessing is worked on sumulation results.

I am new to software design. I think this may be too naive. Any good
advice or other things I need to consider in the design.

Thank you for your kind help!

Shuisheng

Sep 1 '06 #1
4 1553
ck
I think You want to look at ODE an Open Source library similar to what
you want.
You may take some esign inspiratio from it.
Link:http://www.ode.org/

shuisheng wrote:
Dear All,

I want to develop an engine library for a particular purpose such as a
physical phenomenon simulation. The input is the required physical data
and geometry. The output is the simulation results. Also some
postprocessing are required on the results.

I have a rough design like this:

Three classes: CInterface, CEngine, CPostprocessing

CInterface records all the input data and output results. So it can
provide input to the CEngine, and sace the sumulation results from
CEngine.

Postprocessing is worked on sumulation results.

I am new to software design. I think this may be too naive. Any good
advice or other things I need to consider in the design.

Thank you for your kind help!

Shuisheng
Sep 1 '06 #2
shuisheng wrote:
I have a rough design like this:

Three classes: CInterface, CEngine, CPostprocessing
I am new to software design.
Write the simplest design you can think of. It may include these three
objects, so long as each has simple behavior.

Use a unit test rig ( such as the one at
http://unittest-cpp.sourceforge.net/ ), and write test cases. Each case will
spark up your objects, and send sample data through them.

As you think of more complex data to send, write more test cases. If any
fail, upgrade the code to pass the test.

One myth of software design is you must design your program, implement the
design as source code, and then never change it. That myth comes from
programmers who don't write unit tests for their code. If you instead write
unit tests, you can refactor the design as you go. It may get more complex
than your first plan, or less. But it will never get hard to change!

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Sep 1 '06 #3
ck wrote:
I think You want to look at ODE

Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or the group FAQ list:
<http://www.parashift.c om/c++-faq-lite/how-to-post.html>


Brian (Google groups -- again)

Sep 1 '06 #4
shuisheng wrote:
Dear All,

I want to develop an engine library for a particular purpose such as a
physical phenomenon simulation. The input is the required physical data
and geometry. The output is the simulation results. Also some
postprocessing are required on the results.

I have a rough design like this:

Three classes: CInterface, CEngine, CPostprocessing

CInterface records all the input data and output results. So it can
provide input to the CEngine, and sace the sumulation results from
CEngine.

Postprocessing is worked on sumulation results.

I am new to software design. I think this may be too naive. Any good
advice or other things I need to consider in the design.

Thank you for your kind help!

Shuisheng
Out of curiosity:
1. Why do the classes begin with 'C'?

2. What does the 'C' mean?

3. There is no requirement that identifiers start with 'C'.
I written C++ programs using Microsoft Visual C++ that don't
have any identifiers beginning with 'C'.

-- Thomas
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Sep 4 '06 #5

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

Similar topics

1
2185
by: Robert Hathaway | last post by:
COMP.OBJECT FAQ Version II Beta now Available http://www.objectfaq.com/oofaq2 ================================================== - Latest Important Information on Object Technology - What's New Page - What professionals *must keep up on* in rapidly changing environment - Available on Homepage, email notification on updates now available - Good Resource Site - Latest in Object Technology - Complete Coverage of Object Orientation - Up to...
3
2046
by: Michael Lauzon | last post by:
This is not for a class, I have a group on SourceForge, this is what one of the Developers is asking; the more advanced you can make it right off all the better!: Can someone please create some MySQL to create the first table: the players table. It will need to include (as a minimum): - ID (unique)
14
3118
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ; ExpenseType Data: 1 ; FOOD 2 ; AIRLINE 3 ; FARE
0
1428
by: Mobile Boy 36 | last post by:
I'm trying to make a very simple Textbox with a FocusColor property...When the focus changes to the control, the backcolor must change automaticly to the color set by the focusColor property. Very simple, the control works fine when creating it dynamicly from code. My aim is to add design functionality, so I can use it from the Visual Studio .Net toolbox. When I compile my code, no errors are reproted and Visual studio leaves a
2
1394
by: Carlo, MCP | last post by:
Hi, Sorry for posting twice, but I hope in your comprehension. Please help me! I'm troubling from months with a serious serialization problem that I'm not able to solve. I try to describe as simply as I can. 1) I have a class tha does something with colors. All default values are obviously NOT serializad. Instead, they are serialized when they are
1
9667
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
118
6762
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
2
2606
by: Carlo Stonebanks | last post by:
I have the infamous GoF Design Patterns boo - it's been sittin gon my shelf for years. I have a huge reading list and find this book a rather dry read and am always putting it off. I have recommendation for "Head First Design Patterns" book, but it's aimed aimed at Java developers. I'd rather have a book that has a "For Dummies" readability that that hopefully exploits C# and .NET features and (oh, please, please, please) includes a CD...
5
2755
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10417
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9220
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7678
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5568
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.