samedi 3 octobre 2015

Designing A reader and Processor using Java

I am writing a Core java module, where in there, there are events which are read and then those read events are needed to be organized into some form

I have figured the OOPS deign something like this

EventManager has Two Objects, EventReader and EventScheduler

The EventReader reads the data from the text input file and gives back an array of Objects of type Event.

The EventScheduler takes in as input the Event array object and processes them (including sorting the array as per its convince, then arrange them as using (KnapSackProblem) according to some criteria).

Inside the EventScheduler, I have kept methods which sorts and then arranges the Events as per the desired output.

So Is this design High Cohesion and Loose Coupling.. Threotically atleast.. Since I cannot share the entire diagram on the site.

I need a good design and wanted to know what is the correct design for this scenario.

Kindly let me know if you need more design information in this regards to understand the scenario more.

Any Help will be most welcome!

Thanks in Advance :) Cheers

Aucun commentaire:

Enregistrer un commentaire