5 #include "ace/OS_NS_stdlib.h"
6 #include "ace/Log_Msg.h"
11 Thermometer (const char *addr
)
12 : addr_(addr
), threshold_(5)
17 int success
= ACE_OS::rand () % 10;
18 if (success
< this->threshold_
)
25 int itemp
= 80 + ACE_OS::rand () % 10; // 80 <= t <= 90
29 const char *address ()
37 ACE_DEBUG ((LM_ERROR
, ACE_TEXT ("Resetting thermometer %C\n"),
46 #endif /* THERMOMETER_H */