Instances of Class class

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:14 pm

by Krull McSkull >> Thu, 20 May 1999 3:36:15 GMT

Carl,

Interestingly enough, an early version of the JADE object manager (it had a different name in those days) provided such genericity at the 'instance' level. In that incarnation of JOM you defined the membership of a collection when it was used as a property (called instance variables back then). A logical extension was to support instantiating a generic collection in a local variable definition as you are suggesting above. The syntax I favoured at the time was:

vars
customerArray : Array of Customer;

However, the intent is the same. Of course, a slightly more verbose syntax is required to specify a member key dictionary. When we introduced collection subtypes where collection parameters such as membership (and dictionary keys etc.) are defined in the type, we made an incorrect decision (in my opinion) of dropping support for the instance level specification. The main advantage of the generic collection concept is that it avoids a large explosion of collection subtypes that are otherwise required. Things get interesting when you consider what you could do if you could fully define a member key dictionary (membership and keys) as a local variable in a method - anyone remember the thread on 'sorting collections at runtime'?

So, Carl the good news is that we know how to do it. It has been done, its gone but it might well come back .......

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:14 pm

by Hayden >> Mon, 17 May 1999 12:50:32 GMT

Craig !! Who wouldn't ??
Imagine creating a system that a user could program themselves ??
Ok, less maintenance $$ for us, but a bonus for them.

Examples are not only David's DAVE system, but also customisation of generic systems - for example: Our financial system, GreenTree, currently has the ability to be customised here and there - but
imagine being about to sub-class stuff and make the system fit your business needs more snuggly !

"Stock Control" could then become "Widget Management" or whatever -
and better, more useful stats would be able to be obtained - without
the need for a programmer - a major cost saving.

We also have a JADE written "Report Writer" that could greatly benefit from being able to create it's own classes to hold the report
information in a more helpful manner. Which would make it easier to
sell the report writer as a third party JADE tool.

It would be a good push for those of us trying to create "shrink
wrapped" applications using JADE.

This would be cool.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:14 pm

by Robert Barr >> Tue, 18 May 1999 6:46:57 GMT

I've been watching this thread with interest, as I've been thinking for some time now about a visual front end to the JADE development environment, but I'd come across the firebreaks that Dean mentioned were introduced in 4.1, and put it on hold for a while.

By 'visual interface', I mean the sort of look and feel that Rational Rose provides, but forget about UML (could be renamed C++ML) - I was thinking about REALTIME maintenance of class definitions, and more importantly class relationship maintenance - association, inheritance, aggregates. I don't see this as a replacement to the current 4-pane interface - it would allow early visual design and modelling by analysts or even (well hush my mouth) users as part of a round-trip engineering process. Later, developers would continue with implementation, probably using the 4-pane interface for speed.

The realtime aspect is crucial to provide a round-trip process - there are already a few UML/JADE convertors, but they can only be used once - waterfall from visual modelling to implementation.

To do this of course, I need to be able (obviously) to create and delete classes, and modify their properties (and probably much more that's not possible without low level JADE access).

Any other interest in such a 'tool'?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Hayden >> Tue, 18 May 1999 14:33:41 GMT
The realtime aspect is crucial to provide a round-trip process - there are already a few UML/JADE convertors, but they can only be used once - waterfall from visual modelling to implementation.

Are they some UML to JADE converters ?? I'd be very interested to
find out more about such things. One way is better than no way !!

How can I get my hands on such things ?

Thanks
Hayden.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Paul Mathews >> Wed, 19 May 1999 8:34:45 GMT

You have hit the the nail on the head, Robert.

Whenever any one mentions 'What about Collections? ' concerning a tool such as Rational Rose, the answers are mute. Besides silence, the best answer given is that collection are part of implementation not design. Hmm thats about as useless as etc.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Instances of Class class - UML

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Richard Mitchell >> Thu, 20 May 1999 1:22:21 GMT

Regarding Robert's remark about the shortcomings of UML when applied to modelling for JADE systems, the link below contains an interesting article on a proposed extension to UML for composite objects.

http://www.joopmag.com/html/from_pages/feature.shtml

Richard


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 22 guests