Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
12326e88
Commit
12326e88
authored
Feb 10, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches in plugin, to be made more generic
parent
59be9a14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
dream/plugins/CreateCapacityStations.py
dream/plugins/CreateCapacityStations.py
+23
-1
No files found.
dream/plugins/CreateCapacityStations.py
View file @
12326e88
...
...
@@ -53,7 +53,29 @@ class CreateCapacityStations(plugin.InputPreparationPlugin):
"destination"
:
exitId
,
"data"
:
{},
"_class"
:
"Dream.Edge"
}
}
# XXX Patch just for this model to be made more generic
if
stationId
==
'PPASB'
:
data
[
'graph'
][
'node'
][
bufferId
][
'notRequiredOperations'
]
=
[
"EEP"
,
"PAINT"
,
"ASBTST"
]
# XXX another patch, these should be inputted
if
stationId
==
'PPASB'
:
data
[
'graph'
][
'node'
][
stationId
][
'sharedResources'
]
=
{
"sharedResources"
:
{
"stationIds"
:
[
"ASBTST"
],
"priority"
:
3
},
}
data
[
'graph'
][
'node'
][
stationId
][
'notProcessOutsideThreshold'
]
=
1
if
stationId
==
'ASBTST'
:
data
[
'graph'
][
'node'
][
stationId
][
'sharedResources'
]
=
{
"sharedResources"
:
{
"stationIds"
:
[
"PPASB"
],
"priority"
:
2
},
}
data
[
'graph'
][
'node'
][
stationId
][
'notProcessOutsideThreshold'
]
=
1
# add also a CapacityStationController
# XXX some of the attributes should be inputted by the user
data
[
'graph'
][
'node'
][
'CSC'
]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment