Revision 2d315870 doc/classdiagrams/primitives.uml

View differences:

doc/classdiagrams/primitives.uml
45 45

  
46 46
/' Topic ID type. '/
47 47
$type("urt_topicid_t") {
48
  .. URT_CFG_TOPICID_WIDTH == 8 ..
48
  .. URT_CFG_PUBSUB_TOPICID_WIDTH == 8 ..
49 49
  uin8_t
50
  .. URT_CFG_TOPICID_WIDTH == 16 ..
50
  .. URT_CFG_PUBSUB_TOPICID_WIDTH == 16 ..
51 51
  uint16_t
52
  .. URT_CFG_TOPICID_WIDTH == 32 ..
52
  .. URT_CFG_PUBSUB_TOPICID_WIDTH == 32 ..
53 53
  uint32_t
54
  .. URT_CFG_TOPICID_WIDTH == 64 ..
54
  .. URT_CFG_PUBSUB_TOPICID_WIDTH == 64 ..
55 55
  uint64_t
56 56
}
57 57

  
58 58
/' Service ID type. '/
59 59
$type("urt_serviceid_t") {
60
  .. URT_CFG_SERVICEID_WIDTH == 8 ..
60
  .. URT_CFG_RPC_SERVICEID_WIDTH == 8 ..
61 61
  uin8_t
62
  .. URT_CFG_SERVICEID_WIDTH == 16 ..
62
  .. URT_CFG_RPC_SERVICEID_WIDTH == 16 ..
63 63
  uint16_t
64
  .. URT_CFG_SERVICEID_WIDTH == 32 ..
64
  .. URT_CFG_RPC_SERVICEID_WIDTH == 32 ..
65 65
  uint32_t
66
  .. URT_CFG_SERVICEID_WIDTH == 64 ..
66
  .. URT_CFG_RPC_SERVICEID_WIDTH == 64 ..
67 67
  uint64_t
68 68
}
69 69

  
......
99 99
  .. URT_CFG_RPC_ENABLED == true ..
100 100
    'Status indicating that another service with identical ID has been found.
101 101
  URT_STATUS_SERVICE_DUPLICATE
102
    'Status indicating that a service call timed out.
103
  URT_STATUS_SERVICE_TIMEOUT
102
    'Status indicating that a request is not owned by the calling service.
103
  URT_STATUS_REQUEST_BADOWNER
104
    'Status indicatting an aloready locked request.
105
  URT_STATUS_REQUEST_LOCKED
104 106
}
105 107

  
106 108
/' Temporal delay in microseconds. '/
......
109 111
  uint32_t
110 112
  .. URT_CFG_DELAY_WIDTH == 64 ..
111 113
  uint64_t
114
  __
115
    'Special value constant for no delay at all.
116
  URT_DELAY_IMMEDIATE = 0
117
    'Special value constant for infinite delays.
118
  URT_DELAY_INFINITE = 0xF..F
112 119
}
113 120

  
114
/' Just a function for debugging. '/
115
$function("urt_debug") {
116
    'Checks the condition in debug mode.
117
  + {method} urtDebugAssert(condition : bool) : void
121
/' Function type to be called when calculating the usefulness of a message or request response. '/
122
$function("urt_usefulness_f") {
123
    'Takes a delay and optional parameters as arguments and returns a float in [0, 1].
124
  urt_usefulness_f (dt : urt_delay_t, params : void*) : float
118 125
}
119 126

  
120 127
!endsub
......
122 129
/'### DEPENDENCIES & LAYOUT ##################################################'/
123 130

  
124 131
!startsub DEPENDENCIES
132

  
133
urt_usefulness_f ..> urt_delay_t
134

  
125 135
!endsub
126 136

  
127 137
/'### OUTRO ##################################################################'/

Also available in: Unified diff