Friday, 30 August 2013

Java Program Design for class project

Java Program Design for class project

I am working on a class project in java and have the following design
specification.
I have a Scientist class and an ABCFundingApplication class (ABC being a
body that grants scientists funding for their research). The scientist has
certain attributes like his username,password,number of papers published,
funding procured in the past etc etc..
The ABCFundingApplication class holds an array of type scientist which
holds scientist objects. The ABCFundingApplication allows for the
'creation' of scientist objects and also to update profiles of existing
scientist objects.
Now it says that the department ABC calculates whether a scientist
receives funding or not by using some internal process in their firm,
(insert funding algorithm here).
The spec sheet says for us to include this funding_decision algorithm in a
method in the scientist class, my question is why can we not include it as
part of the ABCFundingApplication class and just check whether for a
particular scientist object in the scientist array, whether he/she will be
granted funding? In my opinion this would be a cleaner implementation
would it not?

No comments:

Post a Comment