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
1862d420
Commit
1862d420
authored
Jun 16, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capacity Project: allow specifying "is Assembly" flag on stations
parent
fa147746
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dream/simulation/GUI/CapacityProject.py
dream/simulation/GUI/CapacityProject.py
+9
-0
No files found.
dream/simulation/GUI/CapacityProject.py
View file @
1862d420
...
@@ -15,6 +15,14 @@ class Simulation(DefaultSimulation):
...
@@ -15,6 +15,14 @@ class Simulation(DefaultSimulation):
conf
[
"Dream-AbstractCapacityStation"
]
=
{
conf
[
"Dream-AbstractCapacityStation"
]
=
{
"property_list"
:
[
"property_list"
:
[
{
"id"
:
"isAssembly"
,
"name"
:
"Is an assembly station ?"
,
"description"
:
"Is this station an assembly ? Yes: 1, No: 0"
,
"type"
:
"number"
,
"_class"
:
"Dream.Property"
,
"_default"
:
0
},
],
],
"_class"
:
'Dream.AbstractCapacityStation'
,
"_class"
:
'Dream.AbstractCapacityStation'
,
"name"
:
'Station'
,
"name"
:
'Station'
,
...
@@ -132,6 +140,7 @@ class Simulation(DefaultSimulation):
...
@@ -132,6 +140,7 @@ class Simulation(DefaultSimulation):
id
=
"%s_Buffer"
%
node_id
,
id
=
"%s_Buffer"
%
node_id
,
name
=
node_data
[
'name'
],
name
=
node_data
[
'name'
],
wip
=
wip
,
wip
=
wip
,
isAssembly
=
node_data
[
'isAssembly'
]
)
)
new_data
[
'nodes'
][
"%s_Station"
%
node_id
]
=
dict
(
new_data
[
'nodes'
][
"%s_Station"
%
node_id
]
=
dict
(
...
...
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