Module Conventions

A message is constructed by an object identifier followed by a method name and any parameters.
The object identifier may look like:
<class>
<class>:<instanceId>
<class>:<instanceId>.<attribute>
NOTE: In order for the parsing of messages to work, object identifiers etc containing whitespace or periods (".") must be quoted. It may look like this:
StartableServers."My Server"
or
StartableServers."My \"Server\""
In the second case, quotes in a quoted string are preceded by a \ to indicate that they are not the part of the outer quotation.
 

Subscriptions

The is a concept of publications and subscriptions, whereby modules can subscribe to objects, and are then notified upon changes to those objects.

These functions work as follows. <publication> is the name of an object which one can subscribe to.

<publication> subscribe <moduleName> <moduleData>
Result:
<subscriptionId>
<publication> cancelSubscription <subscriptionId>
Result:
none

Up: Implementing Modules, Next: Using the Broker with Java

© Copyright 1997, 1998 Erland Lewin and the members of the Center for Speech Technology