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
35c9c632
Commit
35c9c632
authored
Mar 10, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables added to Entity and Operator for use by OperatorRouter
parent
82cbad0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
dream/simulation/Entity.py
dream/simulation/Entity.py
+6
-1
dream/simulation/Operator.py
dream/simulation/Operator.py
+4
-0
No files found.
dream/simulation/Entity.py
View file @
35c9c632
...
@@ -51,7 +51,7 @@ class Entity(object):
...
@@ -51,7 +51,7 @@ class Entity(object):
self
.
schedule
=
[]
self
.
schedule
=
[]
self
.
currentStation
=
None
self
.
currentStation
=
None
# values to be used in the internal processing of compoundObjects
# values to be used in the internal processing of compoundObjects
self
.
internal
=
False
# informs if the entity is being processed internally
self
.
internal
=
False
# informs if the entity is being processed internally
self
.
isCritical
=
isCritical
# flag to inform weather the entity is critical -> preemption
self
.
isCritical
=
isCritical
# flag to inform weather the entity is critical -> preemption
self
.
manager
=
None
# default value
self
.
manager
=
None
# default value
self
.
numberOfUnits
=
1
# default value
self
.
numberOfUnits
=
1
# default value
...
@@ -61,6 +61,11 @@ class Entity(object):
...
@@ -61,6 +61,11 @@ class Entity(object):
# variable used to differentiate entities with and entities without routes
# variable used to differentiate entities with and entities without routes
self
.
family
=
'Entity'
self
.
family
=
'Entity'
# variables to be used by OperatorRouter
self
.
canProceed
=
False
# boolean that is used to check weather the entity can proceed to the candidateReceiver
self
.
candidateReceivers
=
[]
# list of candidateReceivers of the entity (those stations that can receive the entity
self
.
candidateReceiver
=
None
# the station that is finaly chosen to receive the entity
# =======================================================================
# =======================================================================
# outputs results to JSON File
# outputs results to JSON File
# =======================================================================
# =======================================================================
...
...
dream/simulation/Operator.py
View file @
35c9c632
...
@@ -59,6 +59,10 @@ class Operator(Repairman): # XXX isn't it the other way around ?
...
@@ -59,6 +59,10 @@ class Operator(Repairman): # XXX isn't it the other way around ?
(
scheduling_rule
,
id
))
(
scheduling_rule
,
id
))
# the station that the operator is assigned to
# the station that the operator is assigned to
self
.
operatorAssignedTo
=
None
self
.
operatorAssignedTo
=
None
# variables to be used by OperatorRouter
self
.
candidateEntities
=
[]
# list of the entities requesting the operator at a certain simulation Time
self
.
candidateEntity
=
None
# the entity that will be chosen for processing
# =======================================================================
# =======================================================================
# sorts the candidateEntities of the Operator according to the scheduling rule
# sorts the candidateEntities of the Operator according to the scheduling rule
...
...
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