From: Smith, T. <Tim...@ds...> - 2002-06-10 22:47:35
|
Thanks Kal :) (b) I shall - my bad, and I already have a test, just wanted to check I hadn't found a problem. Tim &-----Original Message----- &From: Kal Ahmed [mailto:ka...@te...] &Sent: Saturday, 8 June 2002 12:33 AM &To: Smith, Tim &Cc: tm4...@li... &Subject: Re: [Tm4j-developers] inScope & & &Hi Tim, & &The scope comparison is just on a set membership basis. i.e. &you will only &get a positive if there is an overlap between the topics in &the scope you &are testing against and the topics in the scope you are &testing with. The &comparison does not take account of class-instance or &subclass-superclass &relationships. While this is in line with the XTM &specification (and the &way that scope is used there), I think I can see why you might &want to use &a class-instance relationship (to say something like "if name &is scoped by &a language then...") - but to do that I think you will either have to &a) Create a myScope that contains all the instances of TopicB &b) Write your own test & &My guess is that in the general case, (b) is preferable to (a). & &Cheers, & &Kal & &At 16:55 07/06/2002 +1000, you wrote: &>Hi all, &>I think I am missing something, &>I used a &>Topic.getNames(), converted to get a group of BaseNames &>I then used baseNameArray[element].inScope(myScope) &>and did NOT get a true when myScope SHOULD (I think) have given one &>if the name is scoped by Topic B &>and TopicA is-a TopicB (class-instance) &>then if myScope is TopicA (remember name is scoped by TopicB) &>Shouldn't I get a positive? &>Sorry if this is overly confusing &>Tim Smith &> &> &> &>_______________________________________________________________ &> &>Don't miss the 2002 Sprint PCS Application Developer's Conference &>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm &> &>_______________________________________________ &>Tm4j-developers mailing list &>Tm4...@li... &>https://lists.sourceforge.net/lists/listinfo/tm4j-developers & & &_______________________________________________________________ & &Don't miss the 2002 Sprint PCS Application Developer's Conference &August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm & &_______________________________________________ &Tm4j-developers mailing list &Tm4...@li... &https://lists.sourceforge.net/lists/listinfo/tm4j-developers & |