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
19784fcb
Commit
19784fcb
authored
Feb 03, 2014
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Feb 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isCritical property moved to Entity
parent
1eb1a536
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
dream/simulation/Entity.py
dream/simulation/Entity.py
+2
-1
dream/simulation/Job.py
dream/simulation/Job.py
+2
-2
dream/simulation/Mould.py
dream/simulation/Mould.py
+2
-2
dream/simulation/Order.py
dream/simulation/Order.py
+1
-1
dream/simulation/OrderComponent.py
dream/simulation/OrderComponent.py
+2
-2
No files found.
dream/simulation/Entity.py
View file @
19784fcb
...
...
@@ -31,7 +31,7 @@ Class that acts as an abstract. It should have no instances. All the Entities sh
class
Entity
(
object
):
type
=
"Entity"
def
__init__
(
self
,
id
=
None
,
name
=
None
,
priority
=
0
,
dueDate
=
None
,
orderDate
=
None
):
def
__init__
(
self
,
id
=
None
,
name
=
None
,
priority
=
0
,
dueDate
=
None
,
orderDate
=
None
,
isCritical
=
False
):
self
.
name
=
name
# information on the object holding the entity
# initialized as None and updated every time an entity enters a new object
...
...
@@ -52,6 +52,7 @@ class Entity(object):
self
.
currentStation
=
None
# values to be used in the internal processing of compoundObjects
self
.
internal
=
False
# informs if the entity is being processed internally
self
.
isCritical
=
isCritical
# flag to inform weather the entity is critical -> preemption
# =======================================================================
# outputs results to JSON File
# =======================================================================
...
...
dream/simulation/Job.py
View file @
19784fcb
...
...
@@ -35,8 +35,8 @@ from Entity import Entity
class
Job
(
Entity
):
# inherits from the Entity class
type
=
"Job"
def
__init__
(
self
,
id
=
None
,
name
=
None
,
route
=
[],
priority
=
0
,
dueDate
=
None
,
orderDate
=
None
,
extraPropertyDict
=
None
):
Entity
.
__init__
(
self
,
id
=
id
,
name
=
name
,
priority
=
priority
,
dueDate
=
dueDate
,
orderDate
=
orderDate
)
def
__init__
(
self
,
id
=
None
,
name
=
None
,
route
=
[],
priority
=
0
,
dueDate
=
None
,
orderDate
=
None
,
extraPropertyDict
=
None
,
isCritical
=
False
):
Entity
.
__init__
(
self
,
id
=
id
,
name
=
name
,
priority
=
priority
,
dueDate
=
dueDate
,
orderDate
=
orderDate
,
isCritical
=
isCritical
)
# instance specific attributes
self
.
id
=
id
# id
# information on the routing and the stops of the entity
...
...
dream/simulation/Mould.py
View file @
19784fcb
...
...
@@ -43,6 +43,6 @@ class Mould(Job): # inherits from the Job class
extraPropertyDict
=
None
,
order
=
None
,
isCritical
=
False
):
Job
.
__init__
(
self
,
id
,
name
,
route
,
priority
,
dueDate
,
orderDate
,
extraPropertyDict
)
Job
.
__init__
(
self
,
id
,
name
,
route
,
priority
,
dueDate
,
orderDate
,
extraPropertyDict
,
isCritical
)
self
.
order
=
order
# parent order of the order component
self
.
isCritical
=
isCritical
# this should be self.order.isCritical. Added now for testing
\ No newline at end of file
# self.isCritical=isCritical # this should be self.order.isCritical. Added now for testing
\ No newline at end of file
dream/simulation/Order.py
View file @
19784fcb
...
...
@@ -48,7 +48,7 @@ class Order(Job):
extraPropertyDict
=
None
):
Job
.
__init__
(
self
,
id
=
id
,
name
=
name
,
route
=
route
,
priority
=
priority
,
dueDate
=
dueDate
,
orderDate
=
orderDate
,
extraPropertyDict
=
extraPropertyDict
)
self
.
isCritical
=
isCritical
# flag to inform weather the order is critical -> preemption
#
self.isCritical=isCritical # flag to inform weather the order is critical -> preemption
self
.
componentsList
=
componentsList
# list of components that the order will be broken into
self
.
basicComponentsList
=
[]
# list that holds the Basic Components of the order
self
.
secondaryComponentsList
=
[]
# list that holds the Secondary Components of the order
...
...
dream/simulation/OrderComponent.py
View file @
19784fcb
...
...
@@ -45,10 +45,10 @@ class OrderComponent(Job): # inherits from the
requestingComponent
=
None
,
readyForAssembly
=
0
,
isCritical
=
False
):
Job
.
__init__
(
self
,
id
,
name
,
route
,
priority
,
dueDate
,
orderDate
,
extraPropertyDict
)
Job
.
__init__
(
self
,
id
,
name
,
route
,
priority
,
dueDate
,
orderDate
,
extraPropertyDict
,
isCritical
)
self
.
auxiliaryList
=
[]
# Holds the auxiliary components that the component needs for a certain processing
self
.
order
=
order
# parent order of the order component
self
.
isCritical
=
isCritical
# this should be self.order.isCritical. Added now for testing
#
self.isCritical=isCritical # this should be self.order.isCritical. Added now for testing
self
.
componentType
=
componentType
# the type of the component which can be Basic/Secondary/Auxiliary
# if the componentType of the component is Auxiliary then there need a requesting Component be defined
# the requestingComponent is the component that needs the auxiliary component during its processing
...
...
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