// pre-definition type component MtcType { port myPort mtcPort; } type component SystemType { port myPort systemPort; }
function f_config(SystemType.systemPort p_sysPort) runs on MtcType { map (mtc:mtcport, system:p_sysPort); }
// recommended
function myFunction() runs on MtcType mtc MtcType system SystemType {
map (mtc:mtcPort, system: systemPort);
}