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
afe198ae
Commit
afe198ae
authored
Jan 07, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified static files commited
parent
f7c5629a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
10 deletions
+21
-10
dream/platform/static/dream/Input_viewResultList.js
dream/platform/static/dream/Input_viewResultList.js
+1
-1
dream/platform/static/dream/Output_viewDebugJson.html
dream/platform/static/dream/Output_viewDebugJson.html
+2
-0
dream/platform/static/dream/Output_viewDebugJson.js
dream/platform/static/dream/Output_viewDebugJson.js
+12
-3
dream/platform/static/dream/Output_viewExitStatistics.js
dream/platform/static/dream/Output_viewExitStatistics.js
+3
-3
dream/platform/static/dream/Output_viewQueueStatGraph.js
dream/platform/static/dream/Output_viewQueueStatGraph.js
+1
-1
dream/platform/static/dream/Output_viewStationUtilisationGraph.js
...atform/static/dream/Output_viewStationUtilisationGraph.js
+1
-1
dream/platform/static/dream/index.js
dream/platform/static/dream/index.js
+1
-1
No files found.
dream/platform/static/dream/Input_viewResultList.js
View file @
afe198ae
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
}
}
throw
error
;
throw
error
;
}).
push
(
function
(
sim_json
)
{
}).
push
(
function
(
sim_json
)
{
var
document_list
=
JSON
.
parse
(
sim_json
),
result_list
=
[],
i
;
var
document_list
=
JSON
.
parse
(
sim_json
)
.
result
.
result_list
,
result_list
=
[],
i
;
for
(
i
=
0
;
i
<
document_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
document_list
.
length
;
i
+=
1
)
{
result_list
.
push
(
RSVP
.
all
([
gadget
.
whoWantsToDisplayThisResult
(
gadget
.
props
.
jio_key
,
i
),
document_list
[
i
].
score
,
document_list
[
i
].
key
]));
result_list
.
push
(
RSVP
.
all
([
gadget
.
whoWantsToDisplayThisResult
(
gadget
.
props
.
jio_key
,
i
),
document_list
[
i
].
score
,
document_list
[
i
].
key
]));
}
}
...
...
dream/platform/static/dream/Output_viewDebugJson.html
View file @
afe198ae
...
@@ -14,5 +14,7 @@
...
@@ -14,5 +14,7 @@
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_input"
class=
"json_input"
></textarea>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_input"
class=
"json_input"
></textarea>
<label
for=
"json_output"
>
Output
</label>
<label
for=
"json_output"
>
Output
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_output"
class=
"json_output"
></textarea>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_output"
class=
"json_output"
></textarea>
<label
for=
"json_output"
>
Configuration
</label>
<textarea
spellcheck=
"false"
rows=
"20"
name=
"json_configuration"
class=
"json_configuration"
></textarea>
</body>
</body>
</html>
</html>
dream/platform/static/dream/Output_viewDebugJson.js
View file @
afe198ae
...
@@ -11,9 +11,18 @@
...
@@ -11,9 +11,18 @@
_id
:
gadget
.
props
.
jio_key
,
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
}).
push
(
function
(
result_json
)
{
}).
push
(
function
(
result_json
)
{
var
result
=
JSON
.
parse
(
result_json
);
var
document
=
JSON
.
parse
(
result_json
),
result
=
document
.
result
.
result_list
,
input
=
{
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
input
,
undefined
,
"
"
);
input
:
document
.
input
,
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
].
result
,
undefined
,
"
"
);
graph
:
document
.
graph
,
general
:
document
.
general
},
configuration
=
{
application_configuration
:
document
.
application_configuration
,
class_definition
:
document
.
class_definition
,
constrains
:
document
.
constrains
};
gadget
.
props
.
element
.
querySelector
(
"
.json_input
"
).
textContent
=
JSON
.
stringify
(
input
,
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_output
"
).
textContent
=
JSON
.
stringify
(
result
[
gadget
.
props
.
result
],
undefined
,
"
"
);
gadget
.
props
.
element
.
querySelector
(
"
.json_configuration
"
).
textContent
=
JSON
.
stringify
(
configuration
,
undefined
,
"
"
);
});
});
});
});
})(
window
,
rJS
,
initGadgetMixin
);
})(
window
,
rJS
,
initGadgetMixin
);
\ No newline at end of file
dream/platform/static/dream/Output_viewExitStatistics.js
View file @
afe198ae
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
return
a
+
b
;
return
a
+
b
;
})
/
attainment_list
.
length
*
100
).
toFixed
(
2
);
})
/
attainment_list
.
length
*
100
).
toFixed
(
2
);
}
}
function
calculate_exit_stat
(
data
)
{
function
calculate_exit_stat
(
result_index
,
data
)
{
var
output_data
=
data
.
result
,
input_data
=
data
.
input
,
elementList
=
output_data
.
elementList
,
i
,
j
,
metric
,
metric_value
,
element
,
interval_value
,
interval_list
,
attainment_list
,
throughputTarget
=
input_
data
.
general
.
throughputTarget
,
result
=
""
;
var
output_data
=
data
.
result
.
result_list
[
result_index
],
elementList
=
output_data
.
elementList
,
i
,
j
,
metric
,
metric_value
,
element
,
interval_value
,
interval_list
,
attainment_list
,
throughputTarget
=
data
.
general
.
throughputTarget
,
result
=
""
;
for
(
i
=
0
;
i
<
elementList
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
elementList
.
length
;
i
+=
1
)
{
element
=
elementList
[
i
];
element
=
elementList
[
i
];
if
(
element
.
family
===
"
Exit
"
)
{
if
(
element
.
family
===
"
Exit
"
)
{
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
_id
:
gadget
.
props
.
jio_key
,
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
}).
push
(
function
(
simulation_json
)
{
}).
push
(
function
(
simulation_json
)
{
var
result
=
calculate_exit_stat
(
JSON
.
parse
(
simulation_json
)[
gadget
.
props
.
result
]
);
var
result
=
calculate_exit_stat
(
gadget
.
props
.
result
,
JSON
.
parse
(
simulation_json
)
);
gadget
.
props
.
element
.
innerHTML
=
result
;
gadget
.
props
.
element
.
innerHTML
=
result
;
});
});
});
});
...
...
dream/platform/static/dream/Output_viewQueueStatGraph.js
View file @
afe198ae
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
_id
:
gadget
.
props
.
jio_key
,
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
}).
push
(
function
(
simulation_json
)
{
}).
push
(
function
(
simulation_json
)
{
gadget
.
props
.
series
=
queue_stat_widget
(
JSON
.
parse
(
simulation_json
)
[
gadget
.
props
.
result
].
result
);
gadget
.
props
.
series
=
queue_stat_widget
(
JSON
.
parse
(
simulation_json
)
.
result
.
result_list
[
gadget
.
props
.
result
]
);
});
});
}).
declareMethod
(
"
startService
"
,
function
()
{
}).
declareMethod
(
"
startService
"
,
function
()
{
// XXX Manually calculate width and height when resizing
// XXX Manually calculate width and height when resizing
...
...
dream/platform/static/dream/Output_viewStationUtilisationGraph.js
View file @
afe198ae
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
_id
:
gadget
.
props
.
jio_key
,
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
}).
push
(
function
(
simulation_json
)
{
}).
push
(
function
(
simulation_json
)
{
gadget
.
props
.
result_list
=
station_utilisation_graph_widget
(
JSON
.
parse
(
simulation_json
)
[
gadget
.
props
.
result
].
result
);
gadget
.
props
.
result_list
=
station_utilisation_graph_widget
(
JSON
.
parse
(
simulation_json
)
.
result
.
result_list
[
gadget
.
props
.
result
]
);
});
});
}).
declareMethod
(
"
startService
"
,
function
()
{
}).
declareMethod
(
"
startService
"
,
function
()
{
// XXX Manually calculate width and height when resizing
// XXX Manually calculate width and height when resizing
...
...
dream/platform/static/dream/index.js
View file @
afe198ae
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
_attachment
:
"
simulation.json
"
_attachment
:
"
simulation.json
"
});
});
}).
push
(
function
(
sim_json
)
{
}).
push
(
function
(
sim_json
)
{
var
document_list
=
JSON
.
parse
(
sim_json
);
var
document_list
=
JSON
.
parse
(
sim_json
)
.
result
.
result_list
;
return
document_list
[
options
.
result
].
score
+
"
"
+
document_list
[
options
.
result
].
key
;
return
document_list
[
options
.
result
].
score
+
"
"
+
document_list
[
options
.
result
].
key
;
});
});
}
else
{
}
else
{
...
...
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