Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Mapping for TciModuleIdType type

Mapping for TciModuleIdType type 12 Jul 2007 10:20 #7161

Hi all



TCI declares TciModuleIdType which according to standard contains module name as defined in ATS.

Just an extraction: “A value of TciModuleIdType is the name of a TTCN‑3 module as specified in the TTCN‑3 ATS. This abstract type is used for module handling.”

This type is used in the following operations:

- getDefiningModule

- tciRootModule

- getImportedModules (actually returns list of TciModuleIdType objects)

- tciGetModuleParameters



Then TCI defines mapping for this type and maps it into QualifedName. I wonder if it’s correct since module is a top level language element which may not be nested. Mapping it to String datatype looks more reasonable. If we look at the C mapping of tciRootModule operation we may see that it maps TciModuleIdType to String.




void tciRootModule

(in TciModuleIdType moduleId)

void tciRootModule(String moduleId)



So what is the correct mapping?

If mapping to QualifedName is the right one then how should QualifedName structure be filled with module name? Put module name into “moduleName” field and leave “objectName” field empty (or NULL) or vice versa?



Best regards,

/Pavel
The administrator has disabled public write access.

Mapping for TciModuleIdType type 12 Jul 2007 11:30 #7162

Hi Pavel,



I understand that QualifiedName is intended to address any element (module, testcase, … ) defined in the ATS. In case of a module, we are setting both objectName and moduleName values to the name of module (as defined in the ATS).



For example, a module defined in the ATS as “module myModule{…}” will be addressed by a QualifiedName which stores the following path: “myModule::myModule”.





Best Regards,

Adrián Benéitez.




Adrián Benéitez Turrión

SW Development Consultant

TEL: (+34) 91 353 15 64 (EXT. 128)

FAX: (+34) 91 359 61 79

E-MAIL: <This email address is being protected from spambots. You need JavaScript enabled to view it.> This email address is being protected from spambots. You need JavaScript enabled to view it.

Spype: adrian.beneitez



Metodos Y Tecnología (MTP)

Paseo de la Castellana 182, 10th Floor

28046 Madrid, Spain

WEB: <www.mtp.es> www.mtp.es


_____

De: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] En nombre de Pavel Yakovenko
Enviado el: jueves, 12 de julio de 2007 12:21
Para: This email address is being protected from spambots. You need JavaScript enabled to view it.
Asunto: Mapping for TciModuleIdType type



Hi all



TCI declares TciModuleIdType which according to standard contains module name as defined in ATS.

Just an extraction: “A value of TciModuleIdType is the name of a TTCN‑3 module as specified in the TTCN‑3 ATS. This abstract type is used for module handling.”

This type is used in the following operations:

- getDefiningModule

- tciRootModule

- getImportedModules (actually returns list of TciModuleIdType objects)

- tciGetModuleParameters



Then TCI defines mapping for this type and maps it into QualifedName. I wonder if it’s correct since module is a top level language element which may not be nested. Mapping it to String datatype looks more reasonable. If we look at the C mapping of tciRootModule operation we may see that it maps TciModuleIdType to String.




void tciRootModule

(in TciModuleIdType moduleId)

void tciRootModule(String moduleId)



So what is the correct mapping?

If mapping to QualifedName is the right one then how should QualifedName structure be filled with module name? Put module name into “moduleName” field and leave “objectName” field empty (or NULL) or vice versa?



Best regards,

/Pavel
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin