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

object modeling...

Hi,

I made my first steps with oriented object programs and I ask my self a lot
of questions...
Also, I d'ont really know if I post in the rigth Newsgroup...

I have 3 "objects" ?

Equipement, Bloc and Variable

Equipement contains properties : Name, Type
Bloc contains properties : Name, Type, Size
Variable contains property : Name

For one Equipement, I can have X Blocs and for each Blocs, X Variables.
Of course I could have may Equipements.

How can I structurized this ? For exemple I need to know for one Variable
what's the parent's Bloc and Equipement...

I have think to a multi dimensions array ? Is it the good way ?

Your help will be be good...

Thanks a lot

H. MAILLARD
Nov 15 '05 #1
3 1287
The Equipment class should have a collection of Bloc objects. The bloc
class should have a collection of Variable objects.

Depending on how you structure it, you can force Variables to only exist as
part of a Bloc, and that way you could always know who the parent Bloc is.

"Herve MAILLARD" <rv********@free.fr> wrote in message
news:3f**********************@news.free.fr...
Hi,

I made my first steps with oriented object programs and I ask my self a lot of questions...
Also, I d'ont really know if I post in the rigth Newsgroup...

I have 3 "objects" ?

Equipement, Bloc and Variable

Equipement contains properties : Name, Type
Bloc contains properties : Name, Type, Size
Variable contains property : Name

For one Equipement, I can have X Blocs and for each Blocs, X Variables.
Of course I could have may Equipements.

How can I structurized this ? For exemple I need to know for one Variable
what's the parent's Bloc and Equipement...

I have think to a multi dimensions array ? Is it the good way ?

Your help will be be good...

Thanks a lot

H. MAILLARD

Nov 15 '05 #2
Marina,

Thanks for your answser !

Can you please tell me more about Collections or give me some samples ?

thanks for your help .

H. MAILLARD

"Marina" <zl*******@nospam.hotmail.com> a écrit dans le message de news:
es*************@TK2MSFTNGP10.phx.gbl...
The Equipment class should have a collection of Bloc objects. The bloc
class should have a collection of Variable objects.

Depending on how you structure it, you can force Variables to only exist as part of a Bloc, and that way you could always know who the parent Bloc is.

"Herve MAILLARD" <rv********@free.fr> wrote in message
news:3f**********************@news.free.fr...
Hi,

I made my first steps with oriented object programs and I ask my self a

lot
of questions...
Also, I d'ont really know if I post in the rigth Newsgroup...

I have 3 "objects" ?

Equipement, Bloc and Variable

Equipement contains properties : Name, Type
Bloc contains properties : Name, Type, Size
Variable contains property : Name

For one Equipement, I can have X Blocs and for each Blocs, X Variables.
Of course I could have may Equipements.

How can I structurized this ? For exemple I need to know for one Variable what's the parent's Bloc and Equipement...

I have think to a multi dimensions array ? Is it the good way ?

Your help will be be good...

Thanks a lot

H. MAILLARD


Nov 15 '05 #3
Try this resource: http://www.csharphelp.com/archives/archive183.html
You can also search the visual studio / MSDN help to find explanatory
articles about the .NET collections.

Hope it helps,
-- Rob.

Herve MAILLARD wrote:
Marina,

Thanks for your answser !

Can you please tell me more about Collections or give me some samples
?

thanks for your help .

H. MAILLARD

"Marina" <zl*******@nospam.hotmail.com> a écrit dans le message de
news: es*************@TK2MSFTNGP10.phx.gbl...
The Equipment class should have a collection of Bloc objects. The
bloc class should have a collection of Variable objects.

Depending on how you structure it, you can force Variables to only
exist as part of a Bloc, and that way you could always know who the
parent Bloc is.

"Herve MAILLARD" <rv********@free.fr> wrote in message
news:3f**********************@news.free.fr...
Hi,

I made my first steps with oriented object programs and I ask my
self a lot of questions...
Also, I d'ont really know if I post in the rigth Newsgroup...

I have 3 "objects" ?

Equipement, Bloc and Variable

Equipement contains properties : Name, Type
Bloc contains properties : Name, Type, Size
Variable contains property : Name

For one Equipement, I can have X Blocs and for each Blocs, X
Variables. Of course I could have may Equipements.

How can I structurized this ? For exemple I need to know for one
Variable what's the parent's Bloc and Equipement...

I have think to a multi dimensions array ? Is it the good way ?

Your help will be be good...

Thanks a lot

H. MAILLARD

Nov 15 '05 #4

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

Similar topics

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...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
65
by: Roger Smythe | last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts such that these component parts represent higher levels of conceptual abstraction, and are...
34
by: Pmb | last post by:
Hi. I'm new to this group. I'm refreshing/learning C++ and am starting to learn Object Oriented Programming (OOP). In discussing this with people I came up short as to what the benefits of OOP are....
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...
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...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
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,...

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.