MyQuoter
.MyQuoter
directory, create one directory Stock_Base for the base idl and
two more directories Broker, Distributor for each component. In
MyQuoter/Stock_Base
,
place an idl file Stock_Base.idl
that you could copy
from here. This
file defines the interfaces and events that will be used by
both Stock Distributor and Stock Broker.MyQuoter/Distributor
, place an idl
file Distributor.idl
that looks like this. This
file defines the StockDistributor component
interfaces.MyQuoter/Broker
place an idl file Broker.idl
that looks like
this. This
file defines the StockBroker component interface.%COSMIC_ROOT%\bin
is included in the
PATH variable, e.g., c:\Program
Files\ISIS\CoSMIC\bin.MyQuoter\
, and type the following command:MyQuoter.xme
file in the
MyQuoter
directory. Note that if -x option is not
used, the default xme file name will be
PICML_default_xme_file.xme.
In the Browser of the generated model, the PredefinedTypes folder contains a bunch of atomic datatype elements that will be referenced by other modeling parts later. You don't have to worry about them for now. The models in InterfaceDefinitions folder are the PICML representations ofthe IDL files you just imported. Double-click to open Broker, it will show you a white, document-like entity which represents a <<FileRef>> instance and a yellow box-shaped entity representing a <<Package>> instance. Their equivalent representations in IDL files are "#include" and "module" respectively. Figure 3 gives you a clear view of GME representation of all the 3 idl files created. We will cover the other folders in the next section.