The format for the text file is the following (see parsers/tobsLexer.lex and parsers/tobsParser.yacc for more details) :

#trans TNAME 
#guard "GUARD"
#trans TNAME2
... etc

All fields (inhib, pre, guard) are optional. The transition name is mandatory and should be unique. The order inhib/pre/guard is enforced.

PNAME must be a valid place name in your model, and ARCVAL a CAMI arc function expression (in correct extended CAMI syntax) with respect to the domain of PNAME.

An arbitrary number of arcs may be added (to pre or inhib) but no two arcs should reference the same place. At least one and as many transitions as desired can be put in a single file.

Arc functions and guards should be enclosed in double quotes " ".

All names should be legal C identifiers: (_|alpha)(_|alpha|numeric)*

whitespace are ignored, including newlines, however keywords (#trans, #inhibitor, ...) should be placed after a newline.


#trans P1ThinksNotEat 
Eating "<x>"
Thinking "<x>"
#guard "[x = 1]"

Will be true in any state such that :

Please note that the syntax accepted is extended CAMI syntax for Well-Formed Nets, it allows reference to static subclasses if they exist. Thus variables have to be declared in the original model.

The atomic properties will have an impact on the state space generated, by changing the static/dynamic subclass declarations of the model generated for GreatSPN.

TobsFormat (last edited 2004-06-11 08:25:13 by YannThierry)

All text is available under the terms of the GNU Free Documentation License, see SpotWikiLicense for details.