Using the Livingstone2 Engine |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
This document describes how to run Livingstone from the command line, in contrast to running it from Stanley's GUI environment. Three types of files are involved: Model FilesA Livingstone model is represented by either 3 or 4 model files, which must reside in the same directory and have file names that are identical except for the file extension.
Livingstone models can be expressed in four different formats. You must decide which one you are going to pass to the Livingstone engine.
Scenario FilesScenarios are not considered to be model files; they are simply files
containing command-line-interface commands. By convention, scenarios have file
extension You do not have to store a scenario in a file; you may type the commands to the Livingstone executable command-line interface. But if you want to run the same scenario (or very similar ones) repeatedly, you would save a lot of time and effort by redirecting command-line input from a scenario file. Executable FilesThe Livingstone API is supplied as a class library. The API for flight code
is class You can build an executable by creating an instance of a Livingstone API class and calling methods on it. Your executable must be able to read a model into the Livingstone engine, accept commands and observations, and respond to requests to produce diagnoses. Two executables are supplied, corresponding to the two APIs.The
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Short Form | Long Form | Argument | Description |
|---|---|---|---|
| -h | --help | Print a help message and exit. | |
| -v | --verbose | [r][o][w] | Read, optimize and/or write verbosely. |
| --version | Print version number and exit. | ||
| -y | --history | unsigned int | Set maximum history; 0 is unbounded. |
| --max-truncate | unsigned int | Maximum number of Candidates to retain in truncation. | |
| -p | --progress | min | full | Set progress style. |
| --cbfs | Use the CBFS Tracker. (default) | ||
| --cbfs-candidates | unsigned int | Set the maximum number of Candidates returned by the CBFS Tracker. | |
| --cbfs-search | unsigned int | Maximim number of nodes to search for the CBFS Tracker. | |
| --cover | Use the Conflict Coverage Tracker. | ||
| --cover-max-rank | unsigned int | Maximum-rank Candidate to consider for the Cover Tracker. | |
| --optimize | Optimize the model. Automatically true for progress style "min". |
Note that the contents of the *.params file overrides
command-line options.
l2test supplies a rich command-line interface. Enter the
command help to see a list of command lines.
l2flight ExectuableThe Unix executable is named l2flight and the Win32 executable
is named l2flight.exe.
l2flight is intended for embedded environments (such as flight)
in which a very small footprint is important.
It is invoked with the command line
l2flight <L2bin model file pathname>
It reads model files only in the L2bin format and does not accept command-line options. The only command-line argument is the pathname to the L2bin model file. Input may optionally be redirected from a scenario file, and output may optionally be redirected to save it to a file.
l2flight has a minimal command-line interface. The commands
consist of an opcode of one alphabetic character and up to two unsigned int
arguments. Enter the command h to see a list of command lines.