Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
There is an inconsistency between what the EMA Entity Model T1.0.1 define and what the DECmcc SRM define for the Response argument of the ADD and REMOVE standardized directives: The Entity model (section 9.3.2) defines it as datatype AttrCodeList where the comment says " (* The list of codes of those attributes that were changed *) " while the SRM (page 873 for ADD and 888 for REMOVE) define it as an Attrib_List dataype with an explanation of "The list contains the attribute code AND the new value of the attribute, for each modified attribute" So the difference is between returning a list of attribute IDCodes (EMA) or a list of IDCode and value pairs. TWO QUESTIONS: 1.Which one should we implement ? 2. For the SET directive, I assume that we have to return the attribute code and value, for each modified attribute. But what about when the SET directive is used with a set-valued (SET, SETOF datatype) attribute, what should it return the AttrCodeList or the Attrib_List (IDCode and value) ? Thanks in advance, Phil
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1117.1 | make them look like Set | COOKIE::KITTELL | Richard - Architected Info Mgmt | Fri Jun 07 1991 17:43 | 14 |
Phil, I was in the same dilemma, and decided to treat Add and Remove as special cases of Set. Thus they return an attr list. This might be a problem if a SET OF has gotten long, and someone ADDs another entry. The response lists all the set elements. But then, if an attribute is gonna be that big a set, my philosophy is to make it a child entity. Not that this reply answers your question (what is the *right* way) :-) Richard | |||||
1117.2 | Mark Sylor's reply | BYBLOS::TAMER | Tue Jun 18 1991 15:24 | 18 | |
Date: 17-JUN-1991 21:54:11.63 From: CAPN::SYLOR "EMA, it's not just for networks anymore!" Subj: RE: Can you please comment on this when your time permits ? Thanks. To: BYBLOS::TAMER CC: SYLOR It will be awhile before I get to the notes conf. You can post this for me if you wish. The comment in 9.3.2 is wrong I believe. As noted at the beginning of that chapter in T1.0.1, I was proposing to rewrite it. I did in T1.0.2, which is now available. I rewrote it the easiest way possible, I deleted much of the chapter :-). Anyway, the earlier chapter 6, Agent Implementationa and operation, gives the correct definition of what gets returned by a Set, add and remove operation, they return the new value. Mark |