[Cs5500] Fwd: Regarding configuration objects for Assignment 4

Karl Lieberherr lieber at ccs.neu.edu
Tue Mar 1 18:50:44 EST 2011


This is of great interest to the entire class: Ahmed is proposing a
key/value pairs approach
as an alternative.

How would you answer his questions?

-- Karl

---------- Forwarded message ----------
From: Ahmed Abdelmeged <mohsen at ccs.neu.edu>
Date: Tue, Mar 1, 2011 at 6:02 PM
Subject: Re: [Cs5500] Regarding configuration objects for Assignment 4
To: Karl Lieberherr <lieber at ccs.neu.edu>
Cc: nayak.ra at husky.neu.edu


The second approach is to define the configuration object in the
scg.cd. However, make it generic. For example, a configuration object
can have a list of key/value pairs such as:
http://download.oracle.com/javase/6/docs/api/java/util/Properties.html
In your opinion what would be the pros and cons of both approaches.
Which one would you choose? and What is you rationale for doing so?

On Tue, Mar 1, 2011 at 5:16 PM, Karl Lieberherr <lieber at ccs.neu.edu> wrote:
>
> Hi Rashmi:
>
> It looks like that we have to take the config class apart and put the
> scg_config part into scg.
> The rest goes into the specific domain, such as csp.
>
> Then we get the modularity back: scg is  generic.
>
> We need something like:
>
> interface SCGConfigI = .
> SCGConfig = <SCGconfigClassName> FullyQualifiedClassName <config>
> SCGConfigI <SCGconfigSpec> verbatim.
>
> Does this make sense?
>
> It is important to preserve the beauty of Ahmed's design.
>
> -- Karl
>
>
>
> On Tue, Mar 1, 2011 at 4:20 PM, Ahmed Abdelmeged <ahmed.mohsen at gmail.com> wrote:
> > I'm *strongly* against having *domain specific* details in scg.cd as it
> > defies the purpose of making scg generic. There are a couple of approaches
> > to get over this. please think about them first.
> >
> > On Tue, Mar 1, 2011 at 2:51 PM, Karl Lieberherr <lieber at ccs.neu.edu> wrote:
> >>
> >> Hi Rashmi:
> >>
> >> Yue sent me a proposal for a configuration cd which I improved a bit.
> >> It is here:
> >>
> >>
> >> http://www.ccs.neu.edu/home/lieber/courses/se-courses/cs5500/sp11/GenericSCG/config/test/config.cd
> >>
> >> The configuration object is described by a text file which is an
> >> important part of a playground definition:
> >>
> >>
> >> http://www.ccs.neu.edu/home/lieber/courses/se-courses/cs5500/sp11/GenericSCG/config/test/program.input
> >>
> >> Let me know if you see any problems.
> >>
> >> Please can you post an updated Eclipse .zip folder that replaces the
> >> folder that Ahmed sent over the weekend.
> >> The class will then build on that.
> >>
> >> -- Karl
> >>
> >>
> >> On Tue, Mar 1, 2011 at 2:35 PM, rashmi nayak <nayak.ra at husky.neu.edu>
> >> wrote:
> >> > Hi Professor,
> >> >
> >> > We did not receive any updates on configuration objects. We are waiting
> >> > on
> >> > configuration objects to be added to scg.cd. Request you to please let
> >> > us
> >> > know about it.
> >> >
> >> > Thanks,
> >> > Rashmi
> >> >
> >>
> >> _______________________________________________
> >> Cs5500 mailing list
> >> Cs5500 at lists.ccs.neu.edu
> >> https://lists.ccs.neu.edu/bin/listinfo/cs5500
> >>
> >
> >
> >
> > --
> > Ahmed
> >
>



--
Ahmed



More information about the Cs5500 mailing list