473,385 Members | 1,356 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,385 software developers and data experts.

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 1537
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.com/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.learn.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
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...
3
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...
14
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 ;...
0
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....
2
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...
1
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...
118
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...
2
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...
5
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
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.