Revision 056e40d2 doc/classdiagrams/rpc.uml

View differences:

doc/classdiagrams/rpc.uml
31 31

  
32 32
!startsub ENTITIES
33 33

  
34
$group("service") {
35
  /' Function type to be called when executing an RPC. '/
36
  $function("urt_servicefunc_t") {
37
    urt_servicefunc_t (arg : void*, ret : void*, timeout : urt_delay_t) : urt_status_t
38
  }
39

  
40
  /' Service structure type. '/
41
  $structure("urt_service_t") {
42
      'Pointer to the next service in a list.
43
    + {field} next : urt_service_t*
44
      'Identifier of the service.
45
    + {field} id : urt_serviceid_t
46
      'Mutex lock for exclusive access.'
47
    + {field} lock : urt_osMutex_t
48
      'Callback function to be executed by the service.
49
    + {field} callback : urt_servicefunc_t*
50
    .. URT_CFG_RPC_PROFLING == true ..
51
      'Sum of all durations.
52
    + {field} sumDurations : uint64_t
53
      'Number of executed calls.
54
    + {field} numCalls : uint64_t
55
      'Number of failed calls due to timeout.
56
    + {field} numTimeouts : uint64_t
57
    .. URT_CFG_RPC_PROFILING == true && URT_CFG_RPC_QOS_JITTERCHECKS == true ..
58
      'Minimum duration ever detected (to calculate jitter).
59
    + {field} minDuration : urt_delay_t
60
      'Maximum duration ever detected (to calculate jitter).
61
    + {field} maxDuration : urt_delay_t
62
    __
63
      'Initializes a urt_service_t object.
64
    + {method} urtServiceInit(service : urt_service_t*, id : urt_serviceid_t, callback : urt_servicefunc_t*) : urt_status_t
65
      'Executes an RPC with given arguments and return parameters as well as a timout, in case the RPC may delay execution significantly.
66
    + {method} urtServiceCall(service : urt_service_t*, arg : void*, ret : void*, timeout : urt_delay_t) : urt_status_t
67
  }
34
/' Function type to be called when executing an RPC. '/
35
$function("urt_servicefunc_t") {
36
  urt_servicefunc_t (arg : void*, ret : void*, timeout : urt_delay_t) : urt_status_t
68 37
}
69 38

  
70
/' RPC core type. '/
71
$structure("urt_rpc_t") {
72
    'List of services ordered by their (initial) priority.
73
  - {field} {static} _services : urt_service_t*
39
/' Service structure type. '/
40
$structure("urt_service_t") {
41
    'Pointer to the next service in a list.
42
  + {field} next : urt_service_t*
43
    'Identifier of the service.
44
  + {field} id : urt_serviceid_t
45
    'Mutex lock for exclusive access.'
46
  + {field} lock : urt_osMutex_t
47
    'Callback function to be executed by the service.
48
  + {field} callback : urt_servicefunc_t*
49
  .. URT_CFG_RPC_PROFLING == true ..
50
    'Sum of all durations.
51
  + {field} sumDurations : uint64_t
52
    'Number of executed calls.
53
  + {field} numCalls : uint64_t
54
    'Number of failed calls due to timeout.
55
  + {field} numTimeouts : uint64_t
56
  .. URT_CFG_RPC_PROFILING == true || URT_CFG_RPC_QOS_JITTERCHECKS == true ..
57
    'Minimum duration ever detected (to calculate jitter).
58
  + {field} minDuration : urt_delay_t
59
    'Maximum duration ever detected (to calculate jitter).
60
  + {field} maxDuration : urt_delay_t
74 61
  __
75
    'Initializes the urt_core_t object.
76
  + {method} urtRpcInit (void) : urt_status_t
77
    'Retrieves a topic given an identifier.
78
  + {method} urtRpcRetrieveService (id : urt_serviceid_t) : urt_service_t*
62
    'Initializes a urt_service_t object.
63
  + {method} urtServiceInit(service : urt_service_t*, id : urt_serviceid_t, callback : urt_servicefunc_t*) : urt_status_t
64
    'Executes an RPC with given arguments and return parameters as well as a timout, in case the RPC may delay execution significantly.
65
  + {method} urtServiceCall(service : urt_service_t*, arg : void*, ret : void*, timeout : urt_delay_t) : urt_status_t
79 66
}
80 67

  
81 68
!endsub
......
87 74
urt_service_t "1" o-- "0..1" urt_service_t
88 75
urt_service_t "1" o-- "0..1" urt_servicefunc_t
89 76

  
90
urt_rpc_t "1" o-- "0..1" urt_service_t
91

  
92 77
!endsub
93 78

  
94 79
/'### OUTRO ##################################################################'/

Also available in: Unified diff