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
b19d4fa0
Commit
b19d4fa0
authored
Jan 22, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments
parent
3f190d40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dream/simulation/GUI/Default.py
dream/simulation/GUI/Default.py
+6
-1
No files found.
dream/simulation/GUI/Default.py
View file @
b19d4fa0
import
json
from
dream.simulation.LineGenerationJSON
import
main
as
simulate_line_json
# describe type for properties
schema
=
{
"entity"
:
{
"id"
:
"entity"
,
...
...
@@ -106,6 +107,7 @@ schema = {
}
}
# complex schemas (Dream.PropertyList)
schema
[
"interarrivalTime"
]
=
{
"id"
:
"interarrivalTime"
,
"property_list"
:
[
...
...
@@ -143,7 +145,8 @@ class Simulation(object):
self
.
logger
=
logger
def
getConfigurationDict
(
self
):
"""Returns the possible nodes to use in the graph editor
"""Returns the possible nodes to use in the graph editor, and the global
configuration.
"""
return
{
"Dream-Source"
:
{
...
...
@@ -193,6 +196,8 @@ class Simulation(object):
"property_list"
:
[
schema
[
"capacity"
]],
"_class"
:
'Dream.Repairman'
},
# global configuration
"Dream-Configuration"
:
{
"property_list"
:
[
schema
[
"numberOfReplications"
],
...
...
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