Help in Object oriented design?

E

Elhanan

hi...

i'm keep trying to grasp OO (as many others) i know the basics of
inheritence, polymorphic, etc..

i'm trying to design a solution for an application that will do the
following (i have something in mind allready, just wanted to run it
through)..

this thing needs to accept request via web services for files to be
copied from system to antoher, not too hard unless you consider the
fact that the system in question are as/400 ,unix,nt, and MF. the
actuall software that will do the trasnfer is called connect direct, it
has services in place of each system, and accepts assyncrouns requests
via an SDK.

the system i have needs to play to functions,

1. give a facade to the connect direct, store the request in a
database and pass them along to connect direct.

2. trasnfer files from internal systems to an external server which
does not use connect direct but has it's own api's.

this how i thought to go:

i would have a interface (or abstract class still not sure) that would
symbolize a request (it will be composed of a header and details, like
the header would say from which directory to where, and the details
would say about the files themselves, stil not sure if i should simply
restrict to single line message ).
i would then have subclass which will represent either an internal
request, or external request, an abstract base class of a
messageProcessor that would go through a collection of messages and
deleage to its subclass the message to be processed.

i would have an interface of a server class which implement either the
internal of external systems, (functions like logon, and execute, where
execute would get a paramter the message interface.
 
E

Elhanan

ok.. now i'm thinking that a request shouldn't be abstract becouse it
doesn't actually DO anything. it's should be a typed dataset for the
most part, the interface of the server should get a generic dataset and
it's implemetations should work on the typed dataset.

what do you think?
 

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