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
9ff82f06
Commit
9ff82f06
authored
Sep 01, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capacity Project is part of job family
parent
92308a8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
dream/simulation/CapacityProject.py
dream/simulation/CapacityProject.py
+2
-2
dream/tests/dump/Topology76.json.result
dream/tests/dump/Topology76.json.result
+2
-0
dream/tests/dump/Topology77.json.result
dream/tests/dump/Topology77.json.result
+2
-0
No files found.
dream/simulation/CapacityProject.py
View file @
9ff82f06
...
...
@@ -33,7 +33,6 @@ from Entity import Entity
# ===========================================================================
class
CapacityProject
(
Entity
):
type
=
"CapacityProject"
class_name
=
'Dream.CapacityProject'
def
__init__
(
self
,
id
=
None
,
name
=
None
,
capacityRequirementDict
=
{}):
Entity
.
__init__
(
self
,
id
,
name
)
...
...
@@ -48,8 +47,9 @@ class CapacityProject(Entity):
# =======================================================================
def
outputResultsJSON
(
self
):
from
Globals
import
G
json
=
{
'_class'
:
self
.
class_name
,
json
=
{
'_class'
:
'Dream.%s'
%
(
self
.
__class__
.
__name__
)
,
'id'
:
self
.
id
,
'family'
:
'Job'
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
# if we had just one replication output the results as numbers
...
...
dream/tests/dump/Topology76.json.result
View file @
9ff82f06
...
...
@@ -129,6 +129,7 @@
},
{
"_class": "Dream.CapacityProject",
"family": "Job",
"id": "P1",
"results": {
"schedule": [
...
...
@@ -147,6 +148,7 @@
},
{
"_class": "Dream.CapacityProject",
"family": "Job",
"id": "P2",
"results": {
"schedule": [
...
...
dream/tests/dump/Topology77.json.result
View file @
9ff82f06
...
...
@@ -247,6 +247,7 @@
},
{
"_class": "Dream.CapacityProject",
"family": "Job",
"id": "P1",
"results": {
"schedule": [
...
...
@@ -275,6 +276,7 @@
},
{
"_class": "Dream.CapacityProject",
"family": "Job",
"id": "P2",
"results": {
"schedule": [
...
...
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