Up Previous Next Title Page Index Contents

8.4 The API in the Watch example

The Watch Example tutorial includes details on how to run the Watch models with a visual debugger, which uses the API to provide a trace or simulation of the running application. Here are some extra details of where the API calls are in the Watch example code, given according to the class and method where they are defined.

There are three main places related to initializing the API for the Watch:
1)Master init: initializes the variable holding a port on the MetaEditAPI SOAP service
2)AbstractWatchApplication constructor: makes an MEOop for this graph
3)AbstractWatchApplication addStateOop: makes an MEOop for this state object

There are also three places related to making the API call for animation:
1)AbstractWatchApplication handleEvent: handles the event of moving to a new state, calls animate
2)AbstractWatchApplication animate: calls Master animate with the graph and state MEOop
3)Master animate: calls port.animate (defined in classes generated from WSDL)


Up Previous Next Title Page Index Contents