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
398d6f25
Commit
398d6f25
authored
Aug 21, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix, all tests run
parent
879ccb58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
36 deletions
+4
-36
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+0
-29
dream/simulation/Queue.py
dream/simulation/Queue.py
+4
-7
No files found.
dream/simulation/LineGenerationJSON.py
View file @
398d6f25
...
@@ -302,35 +302,6 @@ def createObjects():
...
@@ -302,35 +302,6 @@ def createObjects():
# get the successorList for the 'Frames'
# get the successorList for the 'Frames'
coreObject
.
nextFrameIds
=
getSuccessorList
(
element
[
'id'
],
lambda
source
,
destination
,
edge_data
:
edge_data
.
get
(
'entity'
)
==
'Frame'
)
coreObject
.
nextFrameIds
=
getSuccessorList
(
element
[
'id'
],
lambda
source
,
destination
,
edge_data
:
edge_data
.
get
(
'entity'
)
==
'Frame'
)
coreObject
.
nextIds
=
getSuccessorList
(
element
[
'id'
])
# update the nextIDs list of the object
coreObject
.
nextIds
=
getSuccessorList
(
element
[
'id'
])
# update the nextIDs list of the object
# elif objClass=='Dream.CapacityStation':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# intervalCapacity=element.get('intervalCapacity', [])
# sharedResources=element.get('sharedResources', {})
# CS=CapacityStation(id,name,intervalCapacity=intervalCapacity, sharedResources=sharedResources)
# CS.nextIds=getSuccessorList(id)
# G.CapacityStationList.append(CS)
# G.ObjList.append(CS)
#
# elif objClass=='Dream.CapacityStationBuffer':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# requireFullProject=bool(element.get('requireFullProject', 0))
# CB=CapacityStationBuffer(id,name,requireFullProject=requireFullProject)
# CB.nextIds=getSuccessorList(id)
# G.CapacityStationBufferList.append(CB)
# G.ObjList.append(CB)
#
# elif objClass=='Dream.CapacityStationExit':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# nextCapacityStationBufferId=element.get('nextCapacityStationBufferId', None)
# CE=CapacityStationExit(id,name,nextCapacityStationBufferId=nextCapacityStationBufferId)
# G.CapacityStationExitList.append(CE)
# G.ExitList.append(CE)
# G.ObjList.append(CE)
# -----------------------------------------------------------------------
# -----------------------------------------------------------------------
# loop through all the nodes to
# loop through all the nodes to
...
...
dream/simulation/Queue.py
View file @
398d6f25
...
@@ -40,14 +40,11 @@ class Queue(CoreObject):
...
@@ -40,14 +40,11 @@ class Queue(CoreObject):
def
__init__
(
self
,
id
=
''
,
name
=
''
,
capacity
=
1
,
isDummy
=
False
,
schedulingRule
=
"FIFO"
,
level
=
None
,
gatherWipStat
=
False
,
inputsDict
=
{}):
def
__init__
(
self
,
id
=
''
,
name
=
''
,
capacity
=
1
,
isDummy
=
False
,
schedulingRule
=
"FIFO"
,
level
=
None
,
gatherWipStat
=
False
,
inputsDict
=
{}):
self
.
type
=
"Queue"
# String that shows the type of object
self
.
type
=
"Queue"
# String that shows the type of object
CoreObject
.
__init__
(
self
,
id
,
name
)
CoreObject
.
__init__
(
self
,
id
,
name
)
# used for the routing of the entities
capacity
=
float
(
capacity
)
# holds the capacity of the Queue
if
capacity
<
0
or
capacity
==
float
(
"inf"
):
if
capacity
>
0
:
self
.
capacity
=
capacity
else
:
self
.
capacity
=
float
(
"inf"
)
self
.
capacity
=
float
(
"inf"
)
else
:
# No failures are considered for the Queue
self
.
capacity
=
int
(
capacity
)
self
.
isDummy
=
bool
(
int
(
isDummy
))
#Boolean that shows if it is the dummy first Queue
self
.
isDummy
=
bool
(
int
(
isDummy
))
#Boolean that shows if it is the dummy first Queue
self
.
schedulingRule
=
schedulingRule
#the scheduling rule that the Queue follows
self
.
schedulingRule
=
schedulingRule
#the scheduling rule that the Queue follows
...
...
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