Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2013-10-26 09:31:55 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7eda9e5ed66cfe47e3231bf2d52cecad138581a5
7eda9e5e
1 parent
bca499ec
added status to place nextpids
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
snakes/plugins/pids.py
snakes/plugins/pids.py
View file @
7eda9e5
...
...
@@ -251,7 +251,8 @@ class PidEnv (dict) :
return
set
(
self
.
_vars
)
@snakes.plugins.plugin
(
"snakes.nets"
,
depends
=
[
"snakes.plugins.let"
])
depends
=
[
"snakes.plugins.let"
,
"snakes.plugins.status"
])
def
extend
(
module
)
:
snk
=
module
class
Transition
(
snk
.
Transition
)
:
...
...
@@ -279,7 +280,8 @@ def extend (module) :
snk
.
PetriNet
.
__init__
(
self
,
name
,
**
args
)
self
.
globals
[
"newpids"
]
=
self
.
globals
[
"let"
]
self
.
nextpids
,
nextpids
=
None
,
args
.
pop
(
"nextpids"
,
"nextpids"
)
self
.
add_place
(
snk
.
Place
(
nextpids
,
[],
tNextPid
))
self
.
add_place
(
snk
.
Place
(
nextpids
,
[],
tNextPid
,
status
=
snk
.
buffer
(
nextpids
)))
self
.
nextpids
=
nextpids
def
add_place
(
self
,
place
,
**
args
)
:
if
place
.
name
==
self
.
nextpids
:
...
...
Please
register
or
login
to post a comment