blob: 112f83d033aef7566c84adb79e24a399e9d9d918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// $Id$
/**
* @file RateGen.idl
*
* Definition of the RateGen (a rate generator) component.
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
*/
#include "../HUDisplay.idl"
module HUDisplay
{
/**
* @brief interface opmode defines the "operation mode" interface.
*/
interface opmode
{
void start ();
void stop ();
boolean active ();
};
component RateGen supports opmode
{
publishes tick Pulse;
/// The attribute can be configured via the home or the
/// component property file.
readonly attribute long hertz;
};
home RateGenHome manages RateGen
{
// Explicit operations
factory new_RateGen (in long hertz);
};
};
|