========
Function
========

This grammar adds extensions to Modelica both to accommodate the FUSED pub/sub
framework and to add bounds to Modelica models. See the READMEs for
com:adventiumenterprises:metaII:modelica:composed:modelica_bounds:bin
and com:adventiumenterprises:metaII:modelica:composed:modelica_pubsub:bin
for more documentation on the individual component grammars.

The grammar mixes the two extensions fairly seamlessly (i.e.,
FUSED-subscribed variables will go through bounds translation after
their subscribed values are retrieved). An exception is that explicit
bounds cannot be placed on FUSED-published or -subscribed variables.

It processes several Modelica and/or FUSED directory files in
command-line order, passing definitions from earlier files on in an
environment for reference in later files.

=====
Usage
=====

% java -jar modelica.jar [--minmax] [--stddev] [FUSED or Modelica files]

The '--minmax' switch activates the production of min/max bounds, the
'--stddev' switch likewise for standard deviation bounds.

* If a file has the extension '.mo.fused', its host-language
translation is output to a file with the same name but the extension
'.mo'. If it contains any FUSED publication statements, a FUSED
publication directory for the file is also output, with the same name
but the extension '.xml.fused'.
* If a file has the extension '.xml.fused', it is read as a FUSED
publication directory and its variables made available for subscription.
* Otherwise, the file is checked for syntactic and semantic errors, but
no output is produced.
