Help Topics
Concepts
Package
Class
The Petri Net Agent panel provides these options:
- Architecture
- The Petri Net architecture consists of these elements:
- Variables, text section which defines the set of
global variables and types referenced by the initialization
logic and Transition rules.
- Init, text section which contains an ABLE init() ruleblock.
- Transitions, one or more Transition nodes which contain
an optional boolean guard clause, and actions.
- Places, one or more Place nodes which define states
and hold Tokens.
- Arcs, links Places and Transitions.
The Petri Net Agent panel is used to define the variables
and initialization sections of the Petri Net ruleset.
Steps in using the panel include:
- Define any import statements for user-defined or standard
Java library classes.
- Create a variables section and define all global variables
references by the initialization ruleblock or by Transition rules.
The minimal set includes defining Vector tokens ; to hold the set of
tokens and a declaration for the type of token used in the Petri Net .. for example
Boolean token; if the tokens are simple Boolean values.
- Create an optional init() ruleblock to perform one-time initialization
of the Petri Net state. Actually this is a place where user-defined ruleblocks
can also be included in the generated Petri Net ruleset. The initial marking of the Petri Net
is usually defined in the individual Place node initial expressions.
For more information refer to the PetriNetAgent
details or PetriNetTutorial.