OT: Business Objects - what are they and can they contain objects like sockets?

G

g18c

Hi, i have posted off topic to hopefully pick up a few design tips from
the experienced programmers here. I have a number of objects in my
current application, two of which are nodes and gateways. The
DataGridView is excellent for me because i can add new objects to a
list in a generic fashion.

My node objects have an address field, name field.

My gateway objects contain a name, ip address and a socket.

The objects do contain a number of other fields but i have not listed
them here as i can illustrate my point with those fields. I like
setting the above as data sources in visual studio because it cuts down
on my GUI design, but doing so entials the use of BindingSources and
lists (lists are ok though as i need to keep lists of objects).

Since i started using DataGridView i saw the object fields were getting
set immediately, which is kind of a pain for me. I then looked at the
IEditableObject interface which helped a little.

But i guess my main question is, is it right for my gateway 'business
object' to contain a socket as well? Should i have the gateway settings
as an internal sub-structure (ie the ip address and name fields) which
can be modified?

Im not sure if my gateway is a business object as such, there are a
number of things which seem to conflict with the business object
analagy. I dont want the gateway object modified whilst its socket is
connected, it is hard to coordinate with the DataGridView as that will
change the gateway properties regardless.

I hope this makes sense, i dare say im even barking up the wrong tree.

Any advice much appreciated,

Chris
 
J

Joanna Carter [TeamB]

<[email protected]> a écrit dans le message de (e-mail address removed)...

| But i guess my main question is, is it right for my gateway 'business
| object' to contain a socket as well? Should i have the gateway settings
| as an internal sub-structure (ie the ip address and name fields) which
| can be modified?
|
| Im not sure if my gateway is a business object as such, there are a
| number of things which seem to conflict with the business object
| analagy. I dont want the gateway object modified whilst its socket is
| connected, it is hard to coordinate with the DataGridView as that will
| change the gateway properties regardless.

Any class used in a business application that describes parts of that
business domain can be regarded as a business class. Instances of those
classes are known as business objects.

Joanna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top