[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

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

1349.0. "MCC_DT_PHASE4NAME as instnc dt for MCC class?" by SWORD1::ES (Eugene Shvartsman) Fri Aug 16 1991 14:12

When on MCC> promt I type command

	TEST MCC 0 YOURMM

FCL will build up parameters for mcc_call and correctly dispatch to my YOURMM
module.

When inside of this module I call mcc_aes_get for in_entity, the instance
descriptor will be fill up with mcc_l_dt field set to MCC_DT_PHASE4NAME!!!!

Why?

Completely puzzled,
Gene
T.RTitleUserPersonal
Name
DateLines
1349.1You are 'aes_get'ting the "MCC 0" global entityNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Aug 16 1991 16:1311
The MCC global entity instance (ie, the 0) is of type phase4name.  The
value 0 indicates "the current MCC, the one on your system". 

In the future when MCC becomes distributed, you might say:

	TEST MCC SWORD1 YOURMM

which would route the request to node SWORD1 and test the YOURMM module
installed on that system.

/keith
1349.2how it works in the PMTOOK::CALLANDERJill Callander DTN 226-5316Mon Aug 26 1991 18:4517
    
    FYI, the datatype passed on an instance can be found in the
    dictionary.
    
    manage/tool/dict
    	show class <class_name> definition instance_datatype
    
    instance_datatype gives a list, by attribute code, of the potential
    identifiers the user can use to enter the class instance. Which one
    is passed is determined by the syntax of what the users enters. The FCL 
    starts with the first id in the instance_datatype list and sees if the
    user entered syntax fits the data type. Each attribute inm the list
    is tried until a match is found or the list is exhausted (which would
    return an error instead of dispatching).
    
    jill
    
1349.3Thanks and one more questionSWORD1::ESEugene ShvartsmanWed Aug 28 1991 17:0246
Aha!

Now it has perfect sence, thanks to Keith's explanation in .1. Together with
Jill's reply it also explains why if I type 

	TEST MCC S123456 YOURMM

i.e. anything longer then 6 characters for the instance name,
mcc_l_dt field will be set to MCC_K_DT_FULL_NAME.

Keith, taking this into account, the following piece of code in
MCC_YOURMM__SHOW_CHAR_MCC.h and MCC_YOURMM__TEST_MCC.h

static dt_valid_in_entity_args  valid_in_entity_args[]  =
       { MCC_K_CLASS_MCC,        CAV_V_INST_NO_WILDCARD, MCC_K_DT_PHASE4NAME,
         MCC_K_CLASS_YOURMM_AM,  CAV_V_INST_NULL,         MCC_K_DT_NULL,
         CAV_K_END_OF_LIST };

should be changed into

static dt_valid_in_entity_args  valid_in_entity_args[]  =
       { MCC_K_CLASS_MCC,        CAV_V_INST_NO_WILDCARD, MCC_K_DT_PHASE4NAME,
         MCC_K_CLASS_YOURMM_AM,  CAV_V_INST_NULL,         MCC_K_DT_NULL,
	 CAV_K_RECORD_SEPARATOR, CAV_K_ENTITY_HEIR,	CAV_K_RECORD_SEPARATOR, 
         MCC_K_CLASS_MCC,        CAV_V_INST_NO_WILDCARD, MCC_K_DT_FULL_NAME,
         MCC_K_CLASS_YOURMM_AM,  CAV_V_INST_NULL,         MCC_K_DT_NULL,
	 CAV_K_RECORD_SEPARATOR, CAV_K_ENTITY_COMB,	CAV_K_RECORD_SEPARATOR, 
         CAV_K_END_OF_LIST };

Jill, I did as you have suggested, but have to admit that I don't now how to
interpret the result:

DAP> SHOW CLASS MCC DEFINITION INSTANCE_DATATYPE

   Definition Name = INSTANCE_DATATYPE   
   Type = L   Length = 4   Count = 2   Defined = TRUE   Class = S
   value[1] = 13
   value[2] = 1

Would you, please, enlighten me. What are these values 13 and 1? And how may I
to figure out that MCC instance data type may be MCC_K_DT_PHASE4NAME or
MCC_K_DT_FULL_NAME?

Thank you,

Gene
1349.4identifier codesTOOK::HAOWed Aug 28 1991 17:328
    The values listed for the INSTANCE_DATATYPE definition are actually
    the identifier attribute codes.  To then get the datatype of these
    attributes, do SHOW CLASS <class> ATTRIBUTE CODE <code #> DEFINITION
    VALUE_DATA_TYPE.  (Or is that VALUE_DATATYPE??).  Try both spellings
    until you find the right one.
    
    Christine