diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-14 14:07:21 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:02 +0200 |
| commit | f604406453f95c82c3e5e4294a51245661868bbe (patch) | |
| tree | 6282cc3eb3164ddd94052175f872c8fc2ee2f623 /src/shapes | |
| parent | 7151ae60cf587a502a7e09d19ebd0fd33e761bf2 (diff) | |
First attempt at experiment list UI
Diffstat (limited to 'src/shapes')
| -rw-r--r-- | src/shapes/index.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/shapes/index.js b/src/shapes/index.js index 07fa512d..cfe0ff54 100644 --- a/src/shapes/index.js +++ b/src/shapes/index.js @@ -136,6 +136,42 @@ Shapes.Path = PropTypes.shape({ sections: PropTypes.arrayOf(Shapes.Section), }); +Shapes.Scheduler = PropTypes.shape({ + name: PropTypes.string.isRequired, +}); + +Shapes.Task = PropTypes.shape({ + id: PropTypes.number.isRequired, + jobId: PropTypes.number.isRequired, + startTick: PropTypes.number.isRequired, + totalFlopCount: PropTypes.number.isRequired, +}); + +Shapes.Job = PropTypes.shape({ + id: PropTypes.number.isRequired, + name: PropTypes.string.isRequired, + traceId: PropTypes.number.isRequired, + taskIds: PropTypes.arrayOf(PropTypes.number), +}); + +Shapes.Trace = PropTypes.shape({ + id: PropTypes.number.isRequired, + name: PropTypes.string.isRequired, + jobIds: PropTypes.arrayOf(PropTypes.number), +}); + +Shapes.Experiment = PropTypes.shape({ + id: PropTypes.number.isRequired, + simulationId: PropTypes.number.isRequired, + traceId: PropTypes.number.isRequired, + trace: Shapes.Trace, + pathId: PropTypes.number.isRequired, + path: Shapes.Path, + schedulerName: PropTypes.string.isRequired, + scheduler: Shapes.Scheduler, + name: PropTypes.string.isRequired, +}); + Shapes.WallSegment = PropTypes.shape({ startPosX: PropTypes.number.isRequired, startPosY: PropTypes.number.isRequired, |
