diff options
Diffstat (limited to 'modules/CIAO/docs/tutorials/CoSMIC/03.html')
-rw-r--r-- | modules/CIAO/docs/tutorials/CoSMIC/03.html | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/modules/CIAO/docs/tutorials/CoSMIC/03.html b/modules/CIAO/docs/tutorials/CoSMIC/03.html new file mode 100644 index 00000000000..c2da3726762 --- /dev/null +++ b/modules/CIAO/docs/tutorials/CoSMIC/03.html @@ -0,0 +1,79 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + + <title>Building a Stock Quoter with TAO - A Tutorial</title> + <!-- $Id$ --> +</head> + +<body style= +"color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" link= +"#000FFF" vlink="#FF0F0F"> + <h3>Implementing Quoter Components with DAnCE<br /></h3>We + discuss this section after the PICML modeling only because we + would like to focus our attention more on the modeling stage. It + does not indicate that the implementation of components has to be + subsequent to the work we've done under GME. They are totally + orthogonal to each other. In fact, they are so orthogonal + that we won't go into details as to how DAnCE programming should + be done. We'll briefly go through the functionality of each + component and provides the links to their implementations + respectively. For a hands on experience on DAnCE programming, + please refer to $CIAO_ROOT/examples/Hello.<br /> + <br /> + <big><big><small>Broker Component<br /> + </small></big></big> The Broker component + waits to be notified by the Distributor component about stock + changes. When a stock change event arrives, it will go back + to Distributor component and retrieve the information it interest + in and output them to the console. The users are allowed to + subscribe to the interested stock value through the interface + supported by Broker component. Here's the complete version of + <a href="../Quoter/Simple/Broker/Broker_exec.h">Broker_exec.h</a> + and <a href= + "../Quoter/Simple/Broker/Broker_exec.cpp">Broker_exec.cpp</a>.<br /> + + <br /> + <big><big><small>Distributor Component<br /> + </small></big></big> The Distributor component + monitors the real time stock database and publishes events + whenever it detects stock change. In our program, we use a + ACE_Task to simulate this real-life activity. The task + will run in a separate thread and periodically increment the + stock value by 1. In the same time the stock value is + incremented, an <span style= + "font-style: italic;">StockName</span> event along with the name + of the changed stock will be sent. Here's the complete version of + <a href= + "../Quoter/Simple/Distributor/Distributor_exec.h">Distributor_exec.h</a> + and <a href= + "../Quoter/Simple/Distributor/Distributor_exec.cpp">Distributor_exec.cpp</a><br /> + + <big><big><small><br /> + Broker client<br /> + </small></big></big> The Broker client program + is the driver program for client to control Broker component, + subscribe and unsubscribe to a specific stock. Here's the + complete version of <a href= + "../Quoter/Simple/Broker/Broker.cpp">Broker.cpp</a><br /> + <br /><big><big><small> + Distributor client</small></big></big><br /> + The Distributor + client program is the driver program for client to control + Distributor component, turn on and off the distribution service, + set up the frequency, etc. Here's the complete version of + <a href="../Quoter/Simple/Distributor/Distributor.cpp">Distributor.cpp</a> + <a name="2" /><br /> + <br /><br /> + + + <address> + <a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br /></a> + </address><!-- Created: Sat Nov 27 15:25:06 CST 1999 --> + <!-- hhmts start --> + <a href="mailto:ming.xiong@vanderbilt.edu">Last modified: + <!-- hhmts end --></a> +</body> +</html> |