Home

Products

Documentation

Download

Support

 

Products

Brahms Compiler

Overview

Brahms

Agent Environment

Compiler

Virtual Machine

Composer

Agent Viewer

 

The Brahms Compiler is responsible for checking the syntax and semantics of Brahms models written in source code compliant with the Brahms language specification into a format understandable by the Brahms virtual machine. The format for the Brahms virtual machine is XML (Extensible Markup Language) to be compliant with the Brahms DTD (Document Type Definition).

The compiler checks the source code of the Brahms models for syntax errors and for errors in the semantics to ensure correct behavior of the models in the virtual machine. The source files must have the extension .b. 

The compiler is integrated with the Brahms Composer to further ease the development process. 

If you experience problems with the compiler please make sure to check out the known problems before reporting a bug. If the problem isn't listed please report the bug using the bug report form.

Usage

The Brahms compiler requires a Java virtual machine version 1.5 or higher (supplied with the download).

The usage of the compiler is:

bc.exe [options] <brahms file> 

To use the compiler you need to make sure that the base library is located in your library path (by default <installation directory>/Brahms/PersonalAgent/Models). A batch file (bc.bat) is also included in which the library path for the base model and the DTD path are conveniently set to the appropriate path. 

The following options can be passed to the compiler:

-source <source-path>

Sets the source path in which the compiler searches for  Brahms source files to be imported in the source file being compiled. Multiple directories can be specified separated by a semi-colon ';'.

-lp <library-path>

Sets the library path in which the compiler searches for  Brahms compiled files (.bcc) to be imported in the source file being compiled. This path is used in case the source files cannot be found. Multiple directories can be specified separated by a semi-colon ';'. Any Brahms archives located in any of these paths are included in the library path.

-d <destination build directory>

Sets the directory to which compiled files (.bcc) are written.

-bar <Brahms archive file>

Sets the absolute path for the Brahms archive file (.bar) to which the compiled files need to be archived.

-dtd <dtd path>

Sets the path where the document type definition can be found. The DTD path is required when compiling the source code to XML. 

-cp

Sets the Java class path to find Java activities.

-?

Displays the usage text for the compiler.

 


Questions or problems regarding this web site should be directed to the Webmaster.
Copyright © 2001-2005 NASA Ames Research Center. All rights reserved.
Last modified: Wednesday May 02, 2007.