Download A High-Level Petri Nets based modeling language for generation of

Transcript
Chapter 1: High-level Petri Nets & BPEL4WS
An object of a class in the meta-model can be translated to its PNML element using the
translations provided by table 1.1 below, where the type ID is a unique identifier for the
PNML-element in the whole PNML file and IDRef is a reference to a PNML element in the
PNML file having the identifier indicated by this reference.
Class
PetriNetFile
PetriNet
XML Element
<pnml>
<net>
Place
Transition
Arc
<place>
<transition>
<arc>
Page
RefPlace
<page>
<referencePlace>
RefTrans
<referenceTransition>
ToolInfo
<toolspecific>
Graphics
<graphics>
XML Attributes
id: ID
type: anyURI
id: ID
id: ID
id: ID
source: IDRef (Node)
target: IDRef (Node)
id: ID
id: ID
ref: IDRef (Place or RefPlace)
id: ID
ref: IDRef (Transition or RefTrans)
tool: string
version: string
Table 1.1: Translation of the PNML meta-model into PNML elements [PNML, 2003].
Note: The class Graphics, which describes the graphical representation of an object or
annotation, has been left out of the meta-model because it would clutter the model [PNML,
2003].
Primarily PNML can be used to define Classical Petri Net models, but one has the possibility
to extend the language with new elements by defining a Petri Net Type Definition (PNTD) for
the new elements. In the case of HLPN the PNTD has to define new elements for e.g.
variables, transition conditions and arc inscriptions.
In this GA EPNML [EPNML, 2004] is used, which is an application of the PNML standard. In
the table below the main EPNML elements with their attributes / sub-elements are displayed.
Sub-elements are always optional.
Element
<pnml>
<net>
<place>
Attribute (A) /
Sub-Element (SE)
id (A)
type (A)
<graphics> (SE)
<name> (SE)
<description> (SE)
id (A)
<graphics> (SE)
<name> (SE)
<description> (SE)
<initialMarking> (SE)
<type> (SE)
Comment
Top level element of an EPNML file.
Unique identifier for the net.
Default value: http://www.petriweb.org/specs/epnml11.
Can be used for the graphical representation of the net.
Can be used to name the net.
Can be used for a description of the net.
Unique identifier for the place.
Can be used for the graphical representation of the place.
Can be used to name the place.
Can be used for a description of the place.
Can be used to describe the initial marking of the place.
Can be used to indicate if the place is a normal Petri net
place (“channel”) or a place for data storage (“store”).
Default value is “channel”.
Table 1.2: The main EPNML elements and their attributes / sub-elements.
By: Geert Zijlmans
23/254