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
d1ae4684
Commit
d1ae4684
authored
Oct 29, 2013
by
Ioannis Papagiannopoulos
Committed by
Sebastien Robin
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CalculateProcessingTime() CoreObject method now
parent
2737b568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
dream/simulation/CoreObject.py
dream/simulation/CoreObject.py
+6
-1
dream/simulation/Machine.py
dream/simulation/Machine.py
+0
-5
No files found.
dream/simulation/CoreObject.py
View file @
d1ae4684
...
...
@@ -169,4 +169,9 @@ class CoreObject(Process):
# ========== get the receiver object queue in a removeEntity transaction. ======================
def
getReceiverObjectQueue
(
self
):
return
self
.
getReceiverObject
().
Res
.
activeQ
\ No newline at end of file
# =======================================================================
# calculates the processing time
# =======================================================================
def
calculateProcessingTime
(
self
):
return
self
.
rng
.
generateNumber
()
# this is if we have a default processing time for all the entities
\ No newline at end of file
dream/simulation/Machine.py
View file @
d1ae4684
...
...
@@ -216,11 +216,6 @@ class Machine(CoreObject):
def
checkIfMachineIsUp
(
self
):
return
self
.
Up
# =======================================================================
# calculates the processing time
# =======================================================================
def
calculateProcessingTime
(
self
):
return
self
.
rng
.
generateNumber
()
# this is if we have a default processing time for all the entities
# =======================================================================
# checks if the Machine can accept an entity
...
...
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