vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2036 lines
49 KiB

9 years ago
  1. 'use strict';
  2. if (typeof window === 'undefined') {
  3. var eve = require('evejs');
  4. var GenericAgent = require('./GenericAgent')
  5. }
  6. function EventGenerator(id) {
  7. // execute super constructor
  8. eve.Agent.call(this, id);
  9. this.rpc = this.loadModule('rpc', this.rpcFunctions);
  10. this.connect(eve.system.transports.getAll());
  11. this.eventCounter = 0;
  12. this.events = [
  13. {
  14. "jobId": "100",
  15. "time": "2014-09-16T09:25:00.000+02:00",
  16. "performedBy": "Francesco",
  17. "type": "worker",
  18. "assignment": "Produce Coffeemaker",
  19. "productId": "7",
  20. "operation": "start"
  21. },
  22. {
  23. "jobId": "101",
  24. "time": "2014-09-16T09:25:00.000+02:00",
  25. "performedBy": "Francesco",
  26. "type": "worker",
  27. "assignment": "Kitting Coffeemaker",
  28. "productId": "7",
  29. "operation": "start"
  30. },
  31. {
  32. "jobId": "101",
  33. "time": "2014-09-16T10:49:03.000+02:00",
  34. "performedBy": "Francesco",
  35. "type": "worker",
  36. "assignment": "Kitting Coffeemaker",
  37. "productId": "7",
  38. "operation": "finish"
  39. },
  40. {
  41. "jobId": "102",
  42. "time": "2014-09-16T10:52:13.000+02:00",
  43. "performedBy": "Francesco",
  44. "type": "worker",
  45. "assignment": "Assemble Coffeemaker",
  46. "productId": "7",
  47. "operation": "start"
  48. },
  49. {
  50. "jobId": "999",
  51. "time": "2014-09-16T18:00:00.000+02:00",
  52. "performedBy": "global",
  53. "type": "global",
  54. "assignment": "",
  55. "productId": "",
  56. "operation": "endOfDay"
  57. },
  58. {
  59. "jobId": "999",
  60. "time": "2014-09-17T08:30:00.000+02:00",
  61. "performedBy": "global",
  62. "type": "global",
  63. "assignment": "",
  64. "productId": "",
  65. "operation": "startOfDay"
  66. },
  67. {
  68. "jobId": "81",
  69. "time": "2014-09-17T09:23:00.000+02:00",
  70. "performedBy": "Biagio",
  71. "type": "worker",
  72. "assignment": "Produce Coffeemaker",
  73. "productId": "6",
  74. "operation": "start"
  75. },
  76. {
  77. "jobId": "82",
  78. "time": "2014-09-17T09:23:00.000+02:00",
  79. "performedBy": "Biagio",
  80. "type": "worker",
  81. "assignment": "Kitting Coffeemaker",
  82. "productId": "6",
  83. "operation": "start"
  84. },
  85. {
  86. "jobId": "111",
  87. "time": "2014-09-17T09:25:00.000+02:00",
  88. "performedBy": "Fredrico",
  89. "type": "worker",
  90. "assignment": "Produce Coffeemaker",
  91. "productId": "8",
  92. "operation": "start"
  93. },
  94. {
  95. "jobId": "112",
  96. "time": "2014-09-17T09:25:00.000+02:00",
  97. "performedBy": "Fredrico",
  98. "type": "worker",
  99. "assignment": "Kitting Coffeemaker",
  100. "productId": "8",
  101. "operation": "start"
  102. },
  103. {
  104. "jobId": "82",
  105. "time": "2014-09-17T10:29:03.000+02:00",
  106. "performedBy": "Biagio",
  107. "type": "worker",
  108. "assignment": "Kitting Coffeemaker",
  109. "productId": "6",
  110. "operation": "finish"
  111. },
  112. {
  113. "jobId": "83",
  114. "time": "2014-09-17T10:32:12.000+02:00",
  115. "performedBy": "Biagio",
  116. "type": "worker",
  117. "assignment": "Assemble Coffeemaker",
  118. "productId": "6",
  119. "operation": "start"
  120. },
  121. {
  122. "jobId": "112",
  123. "time": "2014-09-17T11:16:03.000+02:00",
  124. "performedBy": "Fredrico",
  125. "type": "worker",
  126. "assignment": "Kitting Coffeemaker",
  127. "productId": "8",
  128. "operation": "finish"
  129. },
  130. {
  131. "jobId": "113",
  132. "time": "2014-09-17T11:18:03.000+02:00",
  133. "performedBy": "Fredrico",
  134. "type": "worker",
  135. "assignment": "Assemble Coffeemaker",
  136. "productId": "8",
  137. "operation": "start"
  138. },
  139. {
  140. "jobId": "113",
  141. "time": "2014-09-17T11:23:56.000+02:00",
  142. "performedBy": "Fredrico",
  143. "type": "worker",
  144. "assignment": "Assemble Coffeemaker",
  145. "productId": "8",
  146. "operation": "pause"
  147. },
  148. {
  149. "jobId": "114",
  150. "time": "2014-09-17T11:23:56.000+02:00",
  151. "performedBy": "Paolo",
  152. "type": "rao",
  153. "assignment": "Go to station",
  154. "productId": "8",
  155. "operation": "start"
  156. },
  157. {
  158. "jobId": "114",
  159. "time": "2014-09-17T11:28:16.000+02:00",
  160. "performedBy": "Paolo",
  161. "type": "rao",
  162. "assignment": "Go to station",
  163. "productId": "8",
  164. "operation": "finish"
  165. },
  166. {
  167. "jobId": "115",
  168. "time": "2014-09-17T11:28:19.000+02:00",
  169. "performedBy": "Paolo",
  170. "type": "rao",
  171. "assignment": "Inspect potential NC",
  172. "productId": "8",
  173. "operation": "start",
  174. "prerequisites": [
  175. {
  176. "type": "Go to station",
  177. "agentId": "Paolo"
  178. }
  179. ]
  180. },
  181. {
  182. "jobId": "115",
  183. "time": "2014-09-17T11:43:21.000+02:00",
  184. "performedBy": "Paolo",
  185. "type": "rao",
  186. "assignment": "Inspect potential NC",
  187. "productId": "8",
  188. "operation": "finish"
  189. },
  190. {
  191. "jobId": "113",
  192. "time": "2014-09-17T11:44:21.000+02:00",
  193. "performedBy": "Fredrico",
  194. "type": "worker",
  195. "assignment": "Assemble Coffeemaker",
  196. "productId": "8",
  197. "operation": "resume"
  198. },
  199. {
  200. "jobId": "102",
  201. "time": "2014-09-17T12:14:39.000+02:00",
  202. "performedBy": "Francesco",
  203. "type": "worker",
  204. "assignment": "Assemble Coffeemaker",
  205. "productId": "7",
  206. "operation": "finish"
  207. },
  208. {
  209. "jobId": "103",
  210. "time": "2014-09-17T12:14:42.000+02:00",
  211. "performedBy": "Paolo",
  212. "type": "rao",
  213. "assignment": "Go to station",
  214. "productId": "7",
  215. "operation": "start"
  216. },
  217. {
  218. "jobId": "103",
  219. "time": "2014-09-17T12:24:39.000+02:00",
  220. "performedBy": "Paolo",
  221. "type": "rao",
  222. "assignment": "Go to station",
  223. "productId": "7",
  224. "operation": "finish"
  225. },
  226. {
  227. "jobId": "104",
  228. "time": "2014-09-17T12:24:45.000+02:00",
  229. "performedBy": "Paolo",
  230. "type": "rao",
  231. "assignment": "Inspect finished Coffeemaker",
  232. "productId": "7",
  233. "operation": "start",
  234. "prerequisites": [
  235. {
  236. "type": "Go to station",
  237. "agentId": "Paolo"
  238. }
  239. ]
  240. },
  241. {
  242. "jobId": "104",
  243. "time": "2014-09-17T14:40:01.000+02:00",
  244. "performedBy": "Paolo",
  245. "type": "rao",
  246. "assignment": "Inspect finished Coffeemaker",
  247. "productId": "7",
  248. "operation": "finish"
  249. },
  250. {
  251. "jobId": "105",
  252. "time": "2014-09-17T14:41:01.000+02:00",
  253. "performedBy": "Francesco",
  254. "type": "worker",
  255. "assignment": "Transport to delivery",
  256. "productId": "7",
  257. "operation": "start"
  258. },
  259. {
  260. "jobId": "105",
  261. "time": "2014-09-17T15:12:12.000+02:00",
  262. "performedBy": "Francesco",
  263. "type": "worker",
  264. "assignment": "Transport to delivery",
  265. "productId": "7",
  266. "operation": "finish"
  267. },
  268. {
  269. "jobId": "100",
  270. "time": "2014-09-17T15:12:12.000+02:00",
  271. "performedBy": "Francesco",
  272. "type": "worker",
  273. "assignment": "Produce Coffeemaker",
  274. "productId": "7",
  275. "operation": "finish"
  276. },
  277. {
  278. "jobId": "83",
  279. "time": "2014-09-17T15:45:21.000+02:00",
  280. "performedBy": "Biagio",
  281. "type": "worker",
  282. "assignment": "Assemble Coffeemaker",
  283. "productId": "6",
  284. "operation": "pause"
  285. },
  286. {
  287. "jobId": "84",
  288. "time": "2014-09-17T15:45:21.000+02:00",
  289. "performedBy": "Paolo",
  290. "type": "rao",
  291. "assignment": "Go to station",
  292. "productId": "6",
  293. "operation": "start"
  294. },
  295. {
  296. "jobId": "84",
  297. "time": "2014-09-17T15:55:11.000+02:00",
  298. "performedBy": "Paolo",
  299. "type": "rao",
  300. "assignment": "Go to station",
  301. "productId": "6",
  302. "operation": "finish"
  303. },
  304. {
  305. "jobId": "85",
  306. "time": "2014-09-17T15:58:11.000+02:00",
  307. "performedBy": "Paolo",
  308. "type": "rao",
  309. "assignment": "Inspect potential NC",
  310. "productId": "6",
  311. "operation": "start",
  312. "prerequisites": [
  313. {
  314. "type": "Go to station",
  315. "agentId": "Paolo"
  316. }
  317. ]
  318. },
  319. {
  320. "jobId": "85",
  321. "time": "2014-09-17T16:11:12.000+02:00",
  322. "performedBy": "Paolo",
  323. "type": "rao",
  324. "assignment": "Inspect potential NC",
  325. "productId": "6",
  326. "operation": "finish"
  327. },
  328. {
  329. "jobId": "86",
  330. "time": "2014-09-17T16:11:12.000+02:00",
  331. "performedBy": "Marcelo",
  332. "type": "pm",
  333. "assignment": "Go to station",
  334. "productId": "6",
  335. "operation": "start"
  336. },
  337. {
  338. "jobId": "86",
  339. "time": "2014-09-17T16:51:12.000+02:00",
  340. "performedBy": "Marcelo",
  341. "type": "pm",
  342. "assignment": "Go to station",
  343. "productId": "6",
  344. "operation": "finish"
  345. },
  346. {
  347. "jobId": "87",
  348. "time": "2014-09-17T16:52:12.000+02:00",
  349. "performedBy": "Marcelo",
  350. "type": "pm",
  351. "assignment": "Discuss potential NC",
  352. "productId": "6",
  353. "operation": "start",
  354. "prerequisites": [
  355. {
  356. "type": "Go to station",
  357. "agentId": "Marcelo"
  358. }
  359. ]
  360. },
  361. {
  362. "jobId": "87",
  363. "time": "2014-09-17T17:12:12.000+02:00",
  364. "performedBy": "Marcelo",
  365. "type": "pm",
  366. "assignment": "Discuss potential NC",
  367. "productId": "6",
  368. "operation": "finish"
  369. },
  370. {
  371. "jobId": "88",
  372. "time": "2014-09-17T17:12:12.000+02:00",
  373. "performedBy": "Marcelo",
  374. "type": "pm",
  375. "assignment": "Go to NC meeting",
  376. "productId": "6",
  377. "operation": "start"
  378. },
  379. {
  380. "jobId": "89",
  381. "time": "2014-09-17T17:12:12.000+02:00",
  382. "performedBy": "Giovanni",
  383. "type": "mt",
  384. "assignment": "Go to NC meeting",
  385. "productId": "6",
  386. "operation": "start"
  387. },
  388. {
  389. "jobId": "90",
  390. "time": "2014-09-17T17:12:12.000+02:00",
  391. "performedBy": "Cristiana",
  392. "type": "mt",
  393. "assignment": "Go to NC meeting",
  394. "productId": "6",
  395. "operation": "start"
  396. },
  397. {
  398. "jobId": "91",
  399. "time": "2014-09-17T17:12:12.000+02:00",
  400. "performedBy": "Claudio",
  401. "type": "mt",
  402. "assignment": "Go to NC meeting",
  403. "productId": "6",
  404. "operation": "start"
  405. },
  406. {
  407. "jobId": "999",
  408. "time": "2014-09-17T18:00:00.000+02:00",
  409. "performedBy": "global",
  410. "type": "global",
  411. "assignment": "",
  412. "productId": "",
  413. "operation": "endOfDay"
  414. },
  415. {
  416. "jobId": "999",
  417. "time": "2014-09-18T08:30:00.000+02:00",
  418. "performedBy": "global",
  419. "type": "global",
  420. "assignment": "",
  421. "productId": "",
  422. "operation": "startOfDay"
  423. },
  424. {
  425. "jobId": "41",
  426. "time": "2014-09-18T09:25:00.000+02:00",
  427. "performedBy": "Francesco",
  428. "type": "worker",
  429. "assignment": "Produce Coffeemaker",
  430. "productId": "5",
  431. "operation": "start"
  432. },
  433. {
  434. "jobId": "42",
  435. "time": "2014-09-18T09:25:00.000+02:00",
  436. "performedBy": "Francesco",
  437. "type": "worker",
  438. "assignment": "Kitting Coffeemaker",
  439. "productId": "5",
  440. "operation": "start"
  441. },
  442. {
  443. "jobId": "42",
  444. "time": "2014-09-18T10:49:03.000+02:00",
  445. "performedBy": "Francesco",
  446. "type": "worker",
  447. "assignment": "Kitting Coffeemaker",
  448. "productId": "5",
  449. "operation": "finish"
  450. },
  451. {
  452. "jobId": "43",
  453. "time": "2014-09-18T10:52:13.000+02:00",
  454. "performedBy": "Francesco",
  455. "type": "worker",
  456. "assignment": "Assemble Coffeemaker",
  457. "productId": "5",
  458. "operation": "start"
  459. },
  460. {
  461. "jobId": "113",
  462. "time": "2014-09-18T12:10:29.000+02:00",
  463. "performedBy": "Fredrico",
  464. "type": "worker",
  465. "assignment": "Assemble Coffeemaker",
  466. "productId": "8",
  467. "operation": "finish"
  468. },
  469. {
  470. "jobId": "116",
  471. "time": "2014-09-18T12:10:29.000+02:00",
  472. "performedBy": "Paolo",
  473. "type": "rao",
  474. "assignment": "Go to station",
  475. "productId": "8",
  476. "operation": "start"
  477. },
  478. {
  479. "jobId": "116",
  480. "time": "2014-09-18T12:28:29.000+02:00",
  481. "performedBy": "Paolo",
  482. "type": "rao",
  483. "assignment": "Go to station",
  484. "productId": "8",
  485. "operation": "finish"
  486. },
  487. {
  488. "jobId": "117",
  489. "time": "2014-09-18T12:35:29.000+02:00",
  490. "performedBy": "Paolo",
  491. "type": "rao",
  492. "assignment": "Inspect finished Coffeemaker",
  493. "productId": "8",
  494. "operation": "start",
  495. "prerequisites": [
  496. {
  497. "type": "Go to station",
  498. "agentId": "Paolo"
  499. }
  500. ]
  501. },
  502. {
  503. "jobId": "117",
  504. "time": "2014-09-18T15:12:01.000+02:00",
  505. "performedBy": "Paolo",
  506. "type": "rao",
  507. "assignment": "Inspect finished Coffeemaker",
  508. "productId": "8",
  509. "operation": "finish"
  510. },
  511. {
  512. "jobId": "118",
  513. "time": "2014-09-18T15:14:01.000+02:00",
  514. "performedBy": "Fredrico",
  515. "type": "worker",
  516. "assignment": "Transport to delivery",
  517. "productId": "8",
  518. "operation": "start"
  519. },
  520. {
  521. "jobId": "118",
  522. "time": "2014-09-18T15:31:01.000+02:00",
  523. "performedBy": "Fredrico",
  524. "type": "worker",
  525. "assignment": "Transport to delivery",
  526. "productId": "8",
  527. "operation": "finish"
  528. },
  529. {
  530. "jobId": "111",
  531. "time": "2014-09-18T15:31:01.000+02:00",
  532. "performedBy": "Fredrico",
  533. "type": "worker",
  534. "assignment": "Produce Coffeemaker",
  535. "productId": "8",
  536. "operation": "finish"
  537. },
  538. {
  539. "jobId": "999",
  540. "time": "2014-09-18T18:00:00.000+02:00",
  541. "performedBy": "global",
  542. "type": "global",
  543. "assignment": "",
  544. "productId": "",
  545. "operation": "endOfDay"
  546. },
  547. {
  548. "jobId": "999",
  549. "time": "2014-09-19T08:30:00.000+02:00",
  550. "performedBy": "global",
  551. "type": "global",
  552. "assignment": "",
  553. "productId": "",
  554. "operation": "startOfDay"
  555. },
  556. {
  557. "jobId": "88",
  558. "time": "2014-09-19T09:56:00.000+02:00",
  559. "performedBy": "Marcelo",
  560. "type": "pm",
  561. "assignment": "Go to NC meeting",
  562. "productId": "6",
  563. "operation": "finish"
  564. },
  565. {
  566. "jobId": "89",
  567. "time": "2014-09-19T09:56:00.000+02:00",
  568. "performedBy": "Giovanni",
  569. "type": "mt",
  570. "assignment": "Go to NC meeting",
  571. "productId": "6",
  572. "operation": "finish"
  573. },
  574. {
  575. "jobId": "90",
  576. "time": "2014-09-19T09:56:00.000+02:00",
  577. "performedBy": "Cristiana",
  578. "type": "mt",
  579. "assignment": "Go to NC meeting",
  580. "productId": "6",
  581. "operation": "finish"
  582. },
  583. {
  584. "jobId": "91",
  585. "time": "2014-09-19T09:56:00.000+02:00",
  586. "performedBy": "Claudio",
  587. "type": "mt",
  588. "assignment": "Go to NC meeting",
  589. "productId": "6",
  590. "operation": "finish"
  591. },
  592. {
  593. "jobId": "92",
  594. "time": "2014-09-19T10:01:00.000+02:00",
  595. "performedBy": "Marcelo",
  596. "type": "pm",
  597. "assignment": "NC Meeting",
  598. "productId": "6",
  599. "operation": "start",
  600. "prerequisites": [
  601. {
  602. "type": "Go to NC meeting"
  603. }
  604. ]
  605. },
  606. {
  607. "jobId": "93",
  608. "time": "2014-09-19T10:01:00.000+02:00",
  609. "performedBy": "Giovanni",
  610. "type": "mt",
  611. "assignment": "NC Meeting",
  612. "productId": "6",
  613. "operation": "start",
  614. "prerequisites": [
  615. {
  616. "type": "Go to NC meeting"
  617. }
  618. ]
  619. },
  620. {
  621. "jobId": "94",
  622. "time": "2014-09-19T10:01:00.000+02:00",
  623. "performedBy": "Cristiana",
  624. "type": "mt",
  625. "assignment": "NC Meeting",
  626. "productId": "6",
  627. "operation": "start",
  628. "prerequisites": [
  629. {
  630. "type": "Go to NC meeting"
  631. }
  632. ]
  633. },
  634. {
  635. "jobId": "95",
  636. "time": "2014-09-19T10:01:00.000+02:00",
  637. "performedBy": "Claudio",
  638. "type": "mt",
  639. "assignment": "NC Meeting",
  640. "productId": "6",
  641. "operation": "start",
  642. "prerequisites": [
  643. {
  644. "type": "Go to NC meeting"
  645. }
  646. ]
  647. },
  648. {
  649. "jobId": "44",
  650. "time": "2014-09-19T12:10:32.000+02:00",
  651. "performedBy": "Paolo",
  652. "type": "rao",
  653. "assignment": "Go to station",
  654. "productId": "5",
  655. "operation": "start"
  656. },
  657. {
  658. "jobId": "43",
  659. "time": "2014-09-19T12:10:39.000+02:00",
  660. "performedBy": "Francesco",
  661. "type": "worker",
  662. "assignment": "Assemble Coffeemaker",
  663. "productId": "5",
  664. "operation": "finish"
  665. },
  666. {
  667. "jobId": "44",
  668. "time": "2014-09-19T12:24:39.000+02:00",
  669. "performedBy": "Paolo",
  670. "type": "rao",
  671. "assignment": "Go to station",
  672. "productId": "5",
  673. "operation": "finish"
  674. },
  675. {
  676. "jobId": "45",
  677. "time": "2014-09-19T12:24:45.000+02:00",
  678. "performedBy": "Paolo",
  679. "type": "rao",
  680. "assignment": "Inspect finished Coffeemaker",
  681. "productId": "5",
  682. "operation": "start",
  683. "prerequisites": [
  684. {
  685. "type": "Go to station",
  686. "agentId": "Paolo"
  687. }
  688. ]
  689. },
  690. {
  691. "jobId": "92",
  692. "time": "2014-09-19T13:14:00.000+02:00",
  693. "performedBy": "Marcelo",
  694. "type": "pm",
  695. "assignment": "NC Meeting",
  696. "productId": "6",
  697. "operation": "finish"
  698. },
  699. {
  700. "jobId": "93",
  701. "time": "2014-09-19T13:14:00.000+02:00",
  702. "performedBy": "Giovanni",
  703. "type": "mt",
  704. "assignment": "NC Meeting",
  705. "productId": "6",
  706. "operation": "finish"
  707. },
  708. {
  709. "jobId": "94",
  710. "time": "2014-09-19T13:14:00.000+02:00",
  711. "performedBy": "Cristiana",
  712. "type": "mt",
  713. "assignment": "NC Meeting",
  714. "productId": "6",
  715. "operation": "finish"
  716. },
  717. {
  718. "jobId": "95",
  719. "time": "2014-09-19T13:14:00.000+02:00",
  720. "performedBy": "Claudio",
  721. "type": "mt",
  722. "assignment": "NC Meeting",
  723. "productId": "6",
  724. "operation": "finish"
  725. },
  726. {
  727. "jobId": "45",
  728. "time": "2014-09-19T14:43:01.000+02:00",
  729. "performedBy": "Paolo",
  730. "type": "rao",
  731. "assignment": "Inspect finished Coffeemaker",
  732. "productId": "5",
  733. "operation": "finish"
  734. },
  735. {
  736. "jobId": "46",
  737. "time": "2014-09-19T14:43:01.000+02:00",
  738. "performedBy": "Francesco",
  739. "type": "worker",
  740. "assignment": "Transport to delivery",
  741. "productId": "5",
  742. "operation": "start"
  743. },
  744. {
  745. "jobId": "46",
  746. "time": "2014-09-19T14:59:12.000+02:00",
  747. "performedBy": "Francesco",
  748. "type": "worker",
  749. "assignment": "Transport to delivery",
  750. "productId": "5",
  751. "operation": "finish"
  752. },
  753. {
  754. "jobId": "41",
  755. "time": "2014-09-19T14:59:12.000+02:00",
  756. "performedBy": "Francesco",
  757. "type": "worker",
  758. "assignment": "Produce Coffeemaker",
  759. "productId": "5",
  760. "operation": "finish"
  761. },
  762. {
  763. "jobId": "999",
  764. "time": "2014-09-19T18:00:00.000+02:00",
  765. "performedBy": "global",
  766. "type": "global",
  767. "assignment": "",
  768. "productId": "",
  769. "operation": "endOfDay"
  770. },
  771. {
  772. "jobId": "999",
  773. "time": "2014-09-22T08:30:00.000+02:00",
  774. "performedBy": "global",
  775. "type": "global",
  776. "assignment": "",
  777. "productId": "",
  778. "operation": "startOfDay"
  779. },
  780. {
  781. "jobId": "83",
  782. "time": "2014-09-22T09:04:39.000+02:00",
  783. "performedBy": "Biagio",
  784. "type": "worker",
  785. "assignment": "Assemble Coffeemaker",
  786. "productId": "6",
  787. "operation": "resume"
  788. },
  789. {
  790. "jobId": "31",
  791. "time": "2014-09-22T09:08:00.000+02:00",
  792. "performedBy": "Fredrico",
  793. "type": "worker",
  794. "assignment": "Produce Coffeemaker",
  795. "productId": "3",
  796. "operation": "start"
  797. },
  798. {
  799. "jobId": "32",
  800. "time": "2014-09-22T09:08:00.000+02:00",
  801. "performedBy": "Fredrico",
  802. "type": "worker",
  803. "assignment": "Kitting Coffeemaker",
  804. "productId": "3",
  805. "operation": "start"
  806. },
  807. {
  808. "jobId": "32",
  809. "time": "2014-09-22T10:36:03.000+02:00",
  810. "performedBy": "Fredrico",
  811. "type": "worker",
  812. "assignment": "Kitting Coffeemaker",
  813. "productId": "3",
  814. "operation": "finish"
  815. },
  816. {
  817. "jobId": "33",
  818. "time": "2014-09-22T10:38:32.000+02:00",
  819. "performedBy": "Fredrico",
  820. "type": "worker",
  821. "assignment": "Assemble Coffeemaker",
  822. "productId": "3",
  823. "operation": "start"
  824. },
  825. {
  826. "jobId": "83",
  827. "time": "2014-09-22T14:42:39.000+02:00",
  828. "performedBy": "Biagio",
  829. "type": "worker",
  830. "assignment": "Assemble Coffeemaker",
  831. "productId": "6",
  832. "operation": "finish"
  833. },
  834. {
  835. "jobId": "96",
  836. "time": "2014-09-22T14:42:39.000+02:00",
  837. "performedBy": "Paolo",
  838. "type": "rao",
  839. "assignment": "Go to station",
  840. "productId": "6",
  841. "operation": "start"
  842. },
  843. {
  844. "jobId": "96",
  845. "time": "2014-09-22T14:52:39.000+02:00",
  846. "performedBy": "Paolo",
  847. "type": "rao",
  848. "assignment": "Go to station",
  849. "productId": "6",
  850. "operation": "finish"
  851. },
  852. {
  853. "jobId": "97",
  854. "time": "2014-09-22T14:54:39.000+02:00",
  855. "performedBy": "Paolo",
  856. "type": "rao",
  857. "assignment": "Inspect finished Coffeemaker",
  858. "productId": "6",
  859. "operation": "start",
  860. "prerequisites": [
  861. {
  862. "type": "Go to station",
  863. "agentId": "Paolo"
  864. }
  865. ]
  866. },
  867. {
  868. "jobId": "97",
  869. "time": "2014-09-22T17:27:39.000+02:00",
  870. "performedBy": "Paolo",
  871. "type": "rao",
  872. "assignment": "Inspect finished Coffeemaker",
  873. "productId": "6",
  874. "operation": "finish"
  875. },
  876. {
  877. "jobId": "98",
  878. "time": "2014-09-22T17:29:39.000+02:00",
  879. "performedBy": "Biagio",
  880. "type": "worker",
  881. "assignment": "Transport to delivery",
  882. "productId": "6",
  883. "operation": "start"
  884. },
  885. {
  886. "jobId": "98",
  887. "time": "2014-09-22T17:47:39.000+02:00",
  888. "performedBy": "Biagio",
  889. "type": "worker",
  890. "assignment": "Transport to delivery",
  891. "productId": "6",
  892. "operation": "finish"
  893. },
  894. {
  895. "jobId": "81",
  896. "time": "2014-09-22T17:47:39.000+02:00",
  897. "performedBy": "Biagio",
  898. "type": "worker",
  899. "assignment": "Produce Coffeemaker",
  900. "productId": "6",
  901. "operation": "finish"
  902. },
  903. {
  904. "jobId": "999",
  905. "time": "2014-09-22T18:00:00.000+02:00",
  906. "performedBy": "global",
  907. "type": "global",
  908. "assignment": "",
  909. "productId": "",
  910. "operation": "endOfDay"
  911. },
  912. {
  913. "jobId": "999",
  914. "time": "2014-09-23T08:30:00.000+02:00",
  915. "performedBy": "global",
  916. "type": "global",
  917. "assignment": "",
  918. "productId": "",
  919. "operation": "startOfDay"
  920. },
  921. {
  922. "jobId": "51",
  923. "time": "2014-09-23T09:25:00.000+02:00",
  924. "performedBy": "Francesco",
  925. "type": "worker",
  926. "assignment": "Produce Coffeemaker",
  927. "productId": "4",
  928. "operation": "start"
  929. },
  930. {
  931. "jobId": "52",
  932. "time": "2014-09-23T09:25:00.000+02:00",
  933. "performedBy": "Francesco",
  934. "type": "worker",
  935. "assignment": "Kitting Coffeemaker",
  936. "productId": "4",
  937. "operation": "start"
  938. },
  939. {
  940. "jobId": "52",
  941. "time": "2014-09-23T10:49:03.000+02:00",
  942. "performedBy": "Francesco",
  943. "type": "worker",
  944. "assignment": "Kitting Coffeemaker",
  945. "productId": "4",
  946. "operation": "finish"
  947. },
  948. {
  949. "jobId": "53",
  950. "time": "2014-09-23T10:52:13.000+02:00",
  951. "performedBy": "Francesco",
  952. "type": "worker",
  953. "assignment": "Assemble Coffeemaker",
  954. "productId": "4",
  955. "operation": "start"
  956. },
  957. {
  958. "jobId": "53",
  959. "time": "2014-09-23T11:45:21.000+02:00",
  960. "performedBy": "Francesco",
  961. "type": "worker",
  962. "assignment": "Assemble Coffeemaker",
  963. "productId": "4",
  964. "operation": "pause"
  965. },
  966. {
  967. "jobId": "54",
  968. "time": "2014-09-23T11:45:21.000+02:00",
  969. "performedBy": "Paolo",
  970. "type": "rao",
  971. "assignment": "Go to station",
  972. "productId": "4",
  973. "operation": "start"
  974. },
  975. {
  976. "jobId": "54",
  977. "time": "2014-09-23T12:03:21.000+02:00",
  978. "performedBy": "Paolo",
  979. "type": "rao",
  980. "assignment": "Go to station",
  981. "productId": "4",
  982. "operation": "finish"
  983. },
  984. {
  985. "jobId": "55",
  986. "time": "2014-09-23T12:03:56.000+02:00",
  987. "performedBy": "Paolo",
  988. "type": "rao",
  989. "assignment": "Inspect potential NC",
  990. "productId": "4",
  991. "operation": "start",
  992. "prerequisites": [
  993. {
  994. "type": "Go to station",
  995. "agentId": "Paolo"
  996. }
  997. ]
  998. },
  999. {
  1000. "jobId": "55",
  1001. "time": "2014-09-23T14:01:02.000+02:00",
  1002. "performedBy": "Paolo",
  1003. "type": "rao",
  1004. "assignment": "Inspect potential NC",
  1005. "productId": "4",
  1006. "operation": "finish"
  1007. },
  1008. {
  1009. "jobId": "56",
  1010. "time": "2014-09-23T14:01:02.000+02:00",
  1011. "performedBy": "Marcelo",
  1012. "type": "pm",
  1013. "assignment": "Go to station",
  1014. "productId": "4",
  1015. "operation": "start"
  1016. },
  1017. {
  1018. "jobId": "33",
  1019. "time": "2014-09-23T14:10:29.000+02:00",
  1020. "performedBy": "Fredrico",
  1021. "type": "worker",
  1022. "assignment": "Assemble Coffeemaker",
  1023. "productId": "3",
  1024. "operation": "finish"
  1025. },
  1026. {
  1027. "jobId": "34",
  1028. "time": "2014-09-23T14:10:29.000+02:00",
  1029. "performedBy": "Paolo",
  1030. "type": "rao",
  1031. "assignment": "Go to station",
  1032. "productId": "3",
  1033. "operation": "start"
  1034. },
  1035. {
  1036. "jobId": "34",
  1037. "time": "2014-09-23T14:12:29.000+02:00",
  1038. "performedBy": "Paolo",
  1039. "type": "rao",
  1040. "assignment": "Go to station",
  1041. "productId": "3",
  1042. "operation": "finish"
  1043. },
  1044. {
  1045. "jobId": "35",
  1046. "time": "2014-09-23T14:12:34.000+02:00",
  1047. "performedBy": "Paolo",
  1048. "type": "rao",
  1049. "assignment": "Inspect finished Coffeemaker",
  1050. "productId": "3",
  1051. "operation": "start",
  1052. "prerequisites": [
  1053. {
  1054. "type": "Go to station",
  1055. "agentId": "Paolo"
  1056. }
  1057. ]
  1058. },
  1059. {
  1060. "jobId": "56",
  1061. "time": "2014-09-23T14:25:12.000+02:00",
  1062. "performedBy": "Marcelo",
  1063. "type": "pm",
  1064. "assignment": "Go to station",
  1065. "productId": "4",
  1066. "operation": "finish"
  1067. },
  1068. {
  1069. "jobId": "57",
  1070. "time": "2014-09-23T14:25:32.000+02:00",
  1071. "performedBy": "Marcelo",
  1072. "type": "pm",
  1073. "assignment": "Discuss potential NC",
  1074. "productId": "4",
  1075. "operation": "start",
  1076. "prerequisites": [
  1077. {
  1078. "type": "Go to station",
  1079. "agentId": "Marcelo"
  1080. }
  1081. ]
  1082. },
  1083. {
  1084. "jobId": "57",
  1085. "time": "2014-09-23T15:05:12.000+02:00",
  1086. "performedBy": "Marcelo",
  1087. "type": "pm",
  1088. "assignment": "Discuss potential NC",
  1089. "productId": "4",
  1090. "operation": "finish"
  1091. },
  1092. {
  1093. "jobId": "58",
  1094. "time": "2014-09-23T15:05:15.000+02:00",
  1095. "performedBy": "Marcelo",
  1096. "type": "pm",
  1097. "assignment": "Go to NC meeting",
  1098. "productId": "4",
  1099. "operation": "start"
  1100. },
  1101. {
  1102. "jobId": "59",
  1103. "time": "2014-09-23T15:05:15.000+02:00",
  1104. "performedBy": "Pascale",
  1105. "type": "mt",
  1106. "assignment": "Go to NC meeting",
  1107. "productId": "4",
  1108. "operation": "start"
  1109. },
  1110. {
  1111. "jobId": "60",
  1112. "time": "2014-09-23T15:05:15.000+02:00",
  1113. "performedBy": "Giovanni",
  1114. "type": "mt",
  1115. "assignment": "Go to NC meeting",
  1116. "productId": "4",
  1117. "operation": "start"
  1118. },
  1119. {
  1120. "jobId": "61",
  1121. "time": "2014-09-23T15:05:15.000+02:00",
  1122. "performedBy": "Cristiana",
  1123. "type": "mt",
  1124. "assignment": "Go to NC meeting",
  1125. "productId": "4",
  1126. "operation": "start"
  1127. },
  1128. {
  1129. "jobId": "62",
  1130. "time": "2014-09-23T15:05:15.000+02:00",
  1131. "performedBy": "Claudio",
  1132. "type": "mt",
  1133. "assignment": "Go to NC meeting",
  1134. "productId": "4",
  1135. "operation": "start"
  1136. },
  1137. {
  1138. "jobId": "35",
  1139. "time": "2014-09-23T15:32:01.000+02:00",
  1140. "performedBy": "Paolo",
  1141. "type": "rao",
  1142. "assignment": "Inspect finished Coffeemaker",
  1143. "productId": "3",
  1144. "operation": "finish"
  1145. },
  1146. {
  1147. "jobId": "36",
  1148. "time": "2014-09-23T15:32:01.000+02:00",
  1149. "performedBy": "Fredrico",
  1150. "type": "worker",
  1151. "assignment": "Transport to delivery",
  1152. "productId": "3",
  1153. "operation": "start"
  1154. },
  1155. {
  1156. "jobId": "36",
  1157. "time": "2014-09-23T15:49:12.000+02:00",
  1158. "performedBy": "Fredrico",
  1159. "type": "worker",
  1160. "assignment": "Transport to delivery",
  1161. "productId": "3",
  1162. "operation": "finish"
  1163. },
  1164. {
  1165. "jobId": "31",
  1166. "time": "2014-09-23T15:49:12.000+02:00",
  1167. "performedBy": "Fredrico",
  1168. "type": "worker",
  1169. "assignment": "Produce Coffeemaker",
  1170. "productId": "3",
  1171. "operation": "finish"
  1172. },
  1173. {
  1174. "jobId": "999",
  1175. "time": "2014-09-23T18:00:00.000+02:00",
  1176. "performedBy": "global",
  1177. "type": "global",
  1178. "assignment": "",
  1179. "productId": "",
  1180. "operation": "endOfDay"
  1181. },
  1182. {
  1183. "jobId": "999",
  1184. "time": "2014-09-24T08:30:00.000+02:00",
  1185. "performedBy": "global",
  1186. "type": "global",
  1187. "assignment": "",
  1188. "productId": "",
  1189. "operation": "startOfDay"
  1190. },
  1191. {
  1192. "jobId": "21",
  1193. "time": "2014-09-24T09:08:00.000+02:00",
  1194. "performedBy": "Fredrico",
  1195. "type": "worker",
  1196. "assignment": "Produce Coffeemaker",
  1197. "productId": "2",
  1198. "operation": "start"
  1199. },
  1200. {
  1201. "jobId": "22",
  1202. "time": "2014-09-24T09:08:00.000+02:00",
  1203. "performedBy": "Fredrico",
  1204. "type": "worker",
  1205. "assignment": "Kitting Coffeemaker",
  1206. "productId": "2",
  1207. "operation": "start"
  1208. },
  1209. {
  1210. "jobId": "22",
  1211. "time": "2014-09-24T10:36:03.000+02:00",
  1212. "performedBy": "Fredrico",
  1213. "type": "worker",
  1214. "assignment": "Kitting Coffeemaker",
  1215. "productId": "2",
  1216. "operation": "finish"
  1217. },
  1218. {
  1219. "jobId": "23",
  1220. "time": "2014-09-24T10:38:32.000+02:00",
  1221. "performedBy": "Fredrico",
  1222. "type": "worker",
  1223. "assignment": "Assemble Coffeemaker",
  1224. "productId": "2",
  1225. "operation": "start"
  1226. },
  1227. {
  1228. "jobId": "23",
  1229. "time": "2014-09-24T11:03:56.000+02:00",
  1230. "performedBy": "Fredrico",
  1231. "type": "worker",
  1232. "assignment": "Assemble Coffeemaker",
  1233. "productId": "2",
  1234. "operation": "pause"
  1235. },
  1236. {
  1237. "jobId": "24",
  1238. "time": "2014-09-24T11:03:56.000+02:00",
  1239. "performedBy": "Paolo",
  1240. "type": "rao",
  1241. "assignment": "Go to station",
  1242. "productId": "2",
  1243. "operation": "start"
  1244. },
  1245. {
  1246. "jobId": "24",
  1247. "time": "2014-09-24T11:28:16.000+02:00",
  1248. "performedBy": "Paolo",
  1249. "type": "rao",
  1250. "assignment": "Go to station",
  1251. "productId": "2",
  1252. "operation": "finish"
  1253. },
  1254. {
  1255. "jobId": "25",
  1256. "time": "2014-09-24T11:28:19.000+02:00",
  1257. "performedBy": "Paolo",
  1258. "type": "rao",
  1259. "assignment": "Inspect potential NC",
  1260. "productId": "2",
  1261. "operation": "start",
  1262. "prerequisites": [
  1263. {
  1264. "type": "Go to station",
  1265. "agentId": "Paolo"
  1266. }
  1267. ]
  1268. },
  1269. {
  1270. "jobId": "25",
  1271. "time": "2014-09-24T11:35:21.000+02:00",
  1272. "performedBy": "Paolo",
  1273. "type": "rao",
  1274. "assignment": "Inspect potential NC",
  1275. "productId": "2",
  1276. "operation": "finish"
  1277. },
  1278. {
  1279. "jobId": "23",
  1280. "time": "2014-09-24T11:35:21.000+02:00",
  1281. "performedBy": "Fredrico",
  1282. "type": "worker",
  1283. "assignment": "Assemble Coffeemaker",
  1284. "productId": "2",
  1285. "operation": "resume"
  1286. },
  1287. {
  1288. "jobId": "61",
  1289. "time": "2014-09-24T15:51:00.000+02:00",
  1290. "performedBy": "Cristiana",
  1291. "type": "mt",
  1292. "assignment": "Go to NC meeting",
  1293. "productId": "4",
  1294. "operation": "finish"
  1295. },
  1296. {
  1297. "jobId": "62",
  1298. "time": "2014-09-24T15:56:00.000+02:00",
  1299. "performedBy": "Claudio",
  1300. "type": "mt",
  1301. "assignment": "Go to NC meeting",
  1302. "productId": "4",
  1303. "operation": "finish"
  1304. },
  1305. {
  1306. "jobId": "58",
  1307. "time": "2014-09-24T15:57:00.000+02:00",
  1308. "performedBy": "Marcelo",
  1309. "type": "pm",
  1310. "assignment": "Go to NC meeting",
  1311. "productId": "4",
  1312. "operation": "finish"
  1313. },
  1314. {
  1315. "jobId": "59",
  1316. "time": "2014-09-24T15:58:00.000+02:00",
  1317. "performedBy": "Pascale",
  1318. "type": "mt",
  1319. "assignment": "Go to NC meeting",
  1320. "productId": "4",
  1321. "operation": "finish"
  1322. },
  1323. {
  1324. "jobId": "60",
  1325. "time": "2014-09-24T15:59:00.000+02:00",
  1326. "performedBy": "Giovanni",
  1327. "type": "mt",
  1328. "assignment": "Go to NC meeting",
  1329. "productId": "4",
  1330. "operation": "finish"
  1331. },
  1332. {
  1333. "jobId": "64",
  1334. "time": "2014-09-24T16:00:01.000+02:00",
  1335. "performedBy": "Marcelo",
  1336. "type": "pm",
  1337. "assignment": "NC Meeting",
  1338. "productId": "4",
  1339. "operation": "start",
  1340. "prerequisites": [
  1341. {
  1342. "type": "Go to NC meeting"
  1343. }
  1344. ]
  1345. },
  1346. {
  1347. "jobId": "65",
  1348. "time": "2014-09-24T16:00:01.000+02:00",
  1349. "performedBy": "Pascale",
  1350. "type": "mt",
  1351. "assignment": "NC Meeting",
  1352. "productId": "4",
  1353. "operation": "start",
  1354. "prerequisites": [
  1355. {
  1356. "type": "Go to NC meeting"
  1357. }
  1358. ]
  1359. },
  1360. {
  1361. "jobId": "66",
  1362. "time": "2014-09-24T16:00:01.000+02:00",
  1363. "performedBy": "Giovanni",
  1364. "type": "mt",
  1365. "assignment": "NC Meeting",
  1366. "productId": "4",
  1367. "operation": "start",
  1368. "prerequisites": [
  1369. {
  1370. "type": "Go to NC meeting"
  1371. }
  1372. ]
  1373. },
  1374. {
  1375. "jobId": "67",
  1376. "time": "2014-09-24T16:00:01.000+02:00",
  1377. "performedBy": "Cristiana",
  1378. "type": "mt",
  1379. "assignment": "NC Meeting",
  1380. "productId": "4",
  1381. "operation": "start",
  1382. "prerequisites": [
  1383. {
  1384. "type": "Go to NC meeting"
  1385. }
  1386. ]
  1387. },
  1388. {
  1389. "jobId": "68",
  1390. "time": "2014-09-24T16:00:01.000+02:00",
  1391. "performedBy": "Claudio",
  1392. "type": "mt",
  1393. "assignment": "NC Meeting",
  1394. "productId": "4",
  1395. "operation": "start",
  1396. "prerequisites": [
  1397. {
  1398. "type": "Go to NC meeting"
  1399. }
  1400. ]
  1401. },
  1402. {
  1403. "jobId": "66",
  1404. "time": "2014-09-24T17:24:30.000+02:00",
  1405. "performedBy": "Giovanni",
  1406. "type": "mt",
  1407. "assignment": "NC Meeting",
  1408. "productId": "4",
  1409. "operation": "finish"
  1410. },
  1411. {
  1412. "jobId": "67",
  1413. "time": "2014-09-24T17:24:30.000+02:00",
  1414. "performedBy": "Cristiana",
  1415. "type": "mt",
  1416. "assignment": "NC Meeting",
  1417. "productId": "4",
  1418. "operation": "finish"
  1419. },
  1420. {
  1421. "jobId": "64",
  1422. "time": "2014-09-24T17:49:30.000+02:00",
  1423. "performedBy": "Marcelo",
  1424. "type": "pm",
  1425. "assignment": "NC Meeting",
  1426. "productId": "4",
  1427. "operation": "finish"
  1428. },
  1429. {
  1430. "jobId": "65",
  1431. "time": "2014-09-24T17:49:30.000+02:00",
  1432. "performedBy": "Pascale",
  1433. "type": "mt",
  1434. "assignment": "NC Meeting",
  1435. "productId": "4",
  1436. "operation": "finish"
  1437. },
  1438. {
  1439. "jobId": "68",
  1440. "time": "2014-09-24T17:49:30.000+02:00",
  1441. "performedBy": "Claudio",
  1442. "type": "mt",
  1443. "assignment": "NC Meeting",
  1444. "productId": "4",
  1445. "operation": "finish"
  1446. },
  1447. {
  1448. "jobId": "999",
  1449. "time": "2014-09-24T18:00:00.000+02:00",
  1450. "performedBy": "global",
  1451. "type": "global",
  1452. "assignment": "",
  1453. "productId": "",
  1454. "operation": "endOfDay"
  1455. },
  1456. {
  1457. "jobId": "999",
  1458. "time": "2014-09-25T08:30:00.000+02:00",
  1459. "performedBy": "global",
  1460. "type": "global",
  1461. "assignment": "",
  1462. "productId": "",
  1463. "operation": "startOfDay"
  1464. },
  1465. {
  1466. "jobId": "1",
  1467. "time": "2014-09-25T09:05:23.000+02:00",
  1468. "performedBy": "Biagio",
  1469. "type": "worker",
  1470. "assignment": "Produce Coffeemaker",
  1471. "productId": "1",
  1472. "operation": "start"
  1473. },
  1474. {
  1475. "jobId": "2",
  1476. "time": "2014-09-25T09:05:23.000+02:00",
  1477. "performedBy": "Biagio",
  1478. "type": "worker",
  1479. "assignment": "Kitting Coffeemaker",
  1480. "productId": "1",
  1481. "operation": "start"
  1482. },
  1483. {
  1484. "jobId": "2",
  1485. "time": "2014-09-25T10:44:23.000+02:00",
  1486. "performedBy": "Biagio",
  1487. "type": "worker",
  1488. "assignment": "Kitting Coffeemaker",
  1489. "productId": "1",
  1490. "operation": "finish"
  1491. },
  1492. {
  1493. "jobId": "3",
  1494. "time": "2014-09-25T10:44:56.000+02:00",
  1495. "performedBy": "Biagio",
  1496. "type": "worker",
  1497. "assignment": "Assemble Coffeemaker",
  1498. "productId": "1",
  1499. "operation": "start"
  1500. },
  1501. {
  1502. "jobId": "23",
  1503. "time": "2014-09-25T13:10:29.000+02:00",
  1504. "performedBy": "Fredrico",
  1505. "type": "worker",
  1506. "assignment": "Assemble Coffeemaker",
  1507. "productId": "2",
  1508. "operation": "finish"
  1509. },
  1510. {
  1511. "jobId": "28",
  1512. "time": "2014-09-25T13:10:29.000+02:00",
  1513. "performedBy": "Paolo",
  1514. "type": "rao",
  1515. "assignment": "Go to station",
  1516. "productId": "2",
  1517. "operation": "start"
  1518. },
  1519. {
  1520. "jobId": "28",
  1521. "time": "2014-09-25T13:12:29.000+02:00",
  1522. "performedBy": "Paolo",
  1523. "type": "rao",
  1524. "assignment": "Go to station",
  1525. "productId": "2",
  1526. "operation": "finish"
  1527. },
  1528. {
  1529. "jobId": "26",
  1530. "time": "2014-09-25T13:12:32.000+02:00",
  1531. "performedBy": "Paolo",
  1532. "type": "rao",
  1533. "assignment": "Inspect finished Coffeemaker",
  1534. "productId": "2",
  1535. "operation": "start",
  1536. "prerequisites": [
  1537. {
  1538. "type": "Go to station",
  1539. "agentId": "Paolo"
  1540. }
  1541. ]
  1542. },
  1543. {
  1544. "jobId": "3",
  1545. "time": "2014-09-25T13:45:21.000+02:00",
  1546. "performedBy": "Biagio",
  1547. "type": "worker",
  1548. "assignment": "Assemble Coffeemaker",
  1549. "productId": "1",
  1550. "operation": "pause"
  1551. },
  1552. {
  1553. "jobId": "4",
  1554. "time": "2014-09-25T13:45:21.000+02:00",
  1555. "performedBy": "Paolo",
  1556. "type": "rao",
  1557. "assignment": "Go to station",
  1558. "productId": "1",
  1559. "operation": "start"
  1560. },
  1561. {
  1562. "jobId": "26",
  1563. "time": "2014-09-25T13:47:37.000+02:00",
  1564. "performedBy": "Paolo",
  1565. "type": "rao",
  1566. "assignment": "Inspect finished Coffeemaker",
  1567. "productId": "2",
  1568. "operation": "pause",
  1569. "prerequisites": [
  1570. {
  1571. "type": "Inspect potential NC",
  1572. "agentId": "Paolo"
  1573. }
  1574. ]
  1575. },
  1576. {
  1577. "jobId": "4",
  1578. "time": "2014-09-25T13:54:02.000+02:00",
  1579. "performedBy": "Paolo",
  1580. "type": "rao",
  1581. "assignment": "Go to station",
  1582. "productId": "1",
  1583. "operation": "finish"
  1584. },
  1585. {
  1586. "jobId": "5",
  1587. "time": "2014-09-25T13:54:03.000+02:00",
  1588. "performedBy": "Paolo",
  1589. "type": "rao",
  1590. "assignment": "Inspect potential NC",
  1591. "productId": "1",
  1592. "operation": "start",
  1593. "prerequisites": [
  1594. {
  1595. "type": "Go to station",
  1596. "agentId": "Paolo"
  1597. }
  1598. ]
  1599. },
  1600. {
  1601. "jobId": "5",
  1602. "time": "2014-09-25T14:01:02.000+02:00",
  1603. "performedBy": "Paolo",
  1604. "type": "rao",
  1605. "assignment": "Inspect potential NC",
  1606. "productId": "1",
  1607. "operation": "finish"
  1608. },
  1609. {
  1610. "jobId": "3",
  1611. "time": "2014-09-25T14:01:23.000+02:00",
  1612. "performedBy": "Biagio",
  1613. "type": "worker",
  1614. "assignment": "Assemble Coffeemaker",
  1615. "productId": "1",
  1616. "operation": "resume"
  1617. },
  1618. {
  1619. "jobId": "26",
  1620. "time": "2014-09-25T14:12:02.000+02:00",
  1621. "performedBy": "Paolo",
  1622. "type": "rao",
  1623. "assignment": "Inspect finished Coffeemaker",
  1624. "productId": "2",
  1625. "operation": "resume"
  1626. },
  1627. {
  1628. "jobId": "26",
  1629. "time": "2014-09-25T14:32:01.000+02:00",
  1630. "performedBy": "Paolo",
  1631. "type": "rao",
  1632. "assignment": "Inspect finished Coffeemaker",
  1633. "productId": "2",
  1634. "operation": "finish"
  1635. },
  1636. {
  1637. "jobId": "27",
  1638. "time": "2014-09-25T14:32:01.000+02:00",
  1639. "performedBy": "Fredrico",
  1640. "type": "worker",
  1641. "assignment": "Transport to delivery",
  1642. "productId": "2",
  1643. "operation": "start"
  1644. },
  1645. {
  1646. "jobId": "27",
  1647. "time": "2014-09-25T14:49:12.000+02:00",
  1648. "performedBy": "Fredrico",
  1649. "type": "worker",
  1650. "assignment": "Transport to delivery",
  1651. "productId": "2",
  1652. "operation": "finish"
  1653. },
  1654. {
  1655. "jobId": "21",
  1656. "time": "2014-09-25T14:49:12.000+02:00",
  1657. "performedBy": "Fredrico",
  1658. "type": "worker",
  1659. "assignment": "Produce Coffeemaker",
  1660. "productId": "2",
  1661. "operation": "finish"
  1662. },
  1663. {
  1664. "jobId": "999",
  1665. "time": "2014-09-25T18:00:00.000+02:00",
  1666. "performedBy": "global",
  1667. "type": "global",
  1668. "assignment": "",
  1669. "productId": "",
  1670. "operation": "endOfDay"
  1671. },
  1672. {
  1673. "jobId": "999",
  1674. "time": "2014-09-26T08:30:00.000+02:00",
  1675. "performedBy": "global",
  1676. "type": "global",
  1677. "assignment": "",
  1678. "productId": "",
  1679. "operation": "startOfDay"
  1680. },
  1681. {
  1682. "jobId": "53",
  1683. "time": "2014-09-26T09:10:39.000+02:00",
  1684. "performedBy": "Francesco",
  1685. "type": "worker",
  1686. "assignment": "Assemble Coffeemaker",
  1687. "productId": "4",
  1688. "operation": "resume"
  1689. },
  1690. {
  1691. "jobId": "3",
  1692. "time": "2014-09-26T10:13:49.000+02:00",
  1693. "performedBy": "Biagio",
  1694. "type": "worker",
  1695. "assignment": "Assemble Coffeemaker",
  1696. "productId": "1",
  1697. "operation": "pause"
  1698. },
  1699. {
  1700. "jobId": "6",
  1701. "time": "2014-09-26T10:13:49.000+02:00",
  1702. "performedBy": "Paolo",
  1703. "type": "rao",
  1704. "assignment": "Go to station",
  1705. "productId": "1",
  1706. "operation": "start"
  1707. },
  1708. {
  1709. "jobId": "6",
  1710. "time": "2014-09-26T10:25:23.000+02:00",
  1711. "performedBy": "Paolo",
  1712. "type": "rao",
  1713. "assignment": "Go to station",
  1714. "productId": "1",
  1715. "operation": "finish"
  1716. },
  1717. {
  1718. "jobId": "7",
  1719. "time": "2014-09-26T10:25:24.000+02:00",
  1720. "performedBy": "Paolo",
  1721. "type": "rao",
  1722. "assignment": "Inspect potential NC",
  1723. "productId": "1",
  1724. "operation": "start",
  1725. "prerequisites": [
  1726. {
  1727. "type": "Go to station",
  1728. "agentId": "Paolo"
  1729. }
  1730. ]
  1731. },
  1732. {
  1733. "jobId": "7",
  1734. "time": "2014-09-26T10:32:42.000+02:00",
  1735. "performedBy": "Paolo",
  1736. "type": "rao",
  1737. "assignment": "Inspect potential NC",
  1738. "productId": "1",
  1739. "operation": "finish"
  1740. },
  1741. {
  1742. "jobId": "9",
  1743. "time": "2014-09-26T10:32:42.000+02:00",
  1744. "performedBy": "Marcelo",
  1745. "type": "pm",
  1746. "assignment": "Go to station",
  1747. "productId": "1",
  1748. "operation": "start"
  1749. },
  1750. {
  1751. "jobId": "9",
  1752. "time": "2014-09-26T10:58:32.000+02:00",
  1753. "performedBy": "Marcelo",
  1754. "type": "pm",
  1755. "assignment": "Go to station",
  1756. "productId": "1",
  1757. "operation": "finish"
  1758. },
  1759. {
  1760. "jobId": "10",
  1761. "time": "2014-09-26T10:58:33.000+02:00",
  1762. "performedBy": "Marcelo",
  1763. "type": "pm",
  1764. "assignment": "Discuss potential NC",
  1765. "productId": "1",
  1766. "operation": "start",
  1767. "prerequisites": [
  1768. {
  1769. "type": "Go to station",
  1770. "agentId": "Marcelo"
  1771. }
  1772. ]
  1773. },
  1774. {
  1775. "jobId": "10",
  1776. "time": "2014-09-26T11:05:12.000+02:00",
  1777. "performedBy": "Marcelo",
  1778. "type": "pm",
  1779. "assignment": "Discuss potential NC",
  1780. "productId": "1",
  1781. "operation": "finish"
  1782. },
  1783. {
  1784. "jobId": "11",
  1785. "time": "2014-09-26T11:05:12.000+02:00",
  1786. "performedBy": "Paolo",
  1787. "type": "rao",
  1788. "assignment": "Organise drilling rework",
  1789. "productId": "1",
  1790. "operation": "start",
  1791. "prerequisites": [
  1792. {
  1793. "type": "Discuss potential NC"
  1794. }
  1795. ]
  1796. },
  1797. {
  1798. "jobId": "11",
  1799. "time": "2014-09-26T13:25:18.000+02:00",
  1800. "performedBy": "Paolo",
  1801. "type": "rao",
  1802. "assignment": "Organise drilling rework",
  1803. "productId": "1",
  1804. "operation": "finish"
  1805. },
  1806. {
  1807. "jobId": "8",
  1808. "time": "2014-09-26T13:27:58.000+02:00",
  1809. "performedBy": "Fredrico",
  1810. "type": "worker",
  1811. "assignment": "Drilling rework",
  1812. "productId": "1",
  1813. "operation": "start",
  1814. "prerequisites": [
  1815. {
  1816. "type": "Organise drilling rework"
  1817. }
  1818. ]
  1819. },
  1820. {
  1821. "jobId": "53",
  1822. "time": "2014-09-26T14:13:39.000+02:00",
  1823. "performedBy": "Francesco",
  1824. "type": "worker",
  1825. "assignment": "Assemble Coffeemaker",
  1826. "productId": "4",
  1827. "operation": "finish"
  1828. },
  1829. {
  1830. "jobId": "69",
  1831. "time": "2014-09-26T14:13:39.000+02:00",
  1832. "performedBy": "Paolo",
  1833. "type": "rao",
  1834. "assignment": "Go to station",
  1835. "productId": "4",
  1836. "operation": "start"
  1837. },
  1838. {
  1839. "jobId": "69",
  1840. "time": "2014-09-26T14:19:39.000+02:00",
  1841. "performedBy": "Paolo",
  1842. "type": "rao",
  1843. "assignment": "Go to station",
  1844. "productId": "4",
  1845. "operation": "finish"
  1846. },
  1847. {
  1848. "jobId": "70",
  1849. "time": "2014-09-26T14:19:56.000+02:00",
  1850. "performedBy": "Paolo",
  1851. "type": "rao",
  1852. "assignment": "Inspect finished Coffeemaker",
  1853. "productId": "4",
  1854. "operation": "start",
  1855. "prerequisites": [
  1856. {
  1857. "type": "Go to station",
  1858. "agentId": "Paolo"
  1859. }
  1860. ]
  1861. },
  1862. {
  1863. "jobId": "70",
  1864. "time": "2014-09-26T17:13:39.000+02:00",
  1865. "performedBy": "Paolo",
  1866. "type": "rao",
  1867. "assignment": "Inspect finished Coffeemaker",
  1868. "productId": "4",
  1869. "operation": "finish"
  1870. },
  1871. {
  1872. "jobId": "71",
  1873. "time": "2014-09-26T17:13:39.000+02:00",
  1874. "performedBy": "Francesco",
  1875. "type": "worker",
  1876. "assignment": "Transport to delivery",
  1877. "productId": "4",
  1878. "operation": "start"
  1879. },
  1880. {
  1881. "jobId": "71",
  1882. "time": "2014-09-26T17:29:39.000+02:00",
  1883. "performedBy": "Francesco",
  1884. "type": "worker",
  1885. "assignment": "Transport to delivery",
  1886. "productId": "4",
  1887. "operation": "finish"
  1888. },
  1889. {
  1890. "jobId": "51",
  1891. "time": "2014-09-26T17:29:39.000+02:00",
  1892. "performedBy": "Francesco",
  1893. "type": "worker",
  1894. "assignment": "Produce Coffeemaker",
  1895. "productId": "4",
  1896. "operation": "finish"
  1897. },
  1898. {
  1899. "jobId": "8",
  1900. "time": "2014-09-26T17:45:21.000+02:00",
  1901. "performedBy": "Fredrico",
  1902. "type": "worker",
  1903. "assignment": "Drilling rework",
  1904. "productId": "1",
  1905. "operation": "finish"
  1906. },
  1907. {
  1908. "jobId": "999",
  1909. "time": "2014-09-26T18:00:00.000+02:00",
  1910. "performedBy": "global",
  1911. "type": "global",
  1912. "assignment": "",
  1913. "productId": "",
  1914. "operation": "endOfDay"
  1915. },
  1916. {
  1917. "jobId": "999",
  1918. "time": "2014-09-29T08:30:00.000+02:00",
  1919. "performedBy": "global",
  1920. "type": "global",
  1921. "assignment": "",
  1922. "productId": "",
  1923. "operation": "startOfDay"
  1924. },
  1925. {
  1926. "jobId": "3",
  1927. "time": "2014-09-29T09:01:23.000+02:00",
  1928. "performedBy": "Biagio",
  1929. "type": "worker",
  1930. "assignment": "Assemble Coffeemaker",
  1931. "productId": "1",
  1932. "operation": "resume"
  1933. },
  1934. {
  1935. "jobId": "3",
  1936. "time": "2014-09-29T12:11:34.000+02:00",
  1937. "performedBy": "Biagio",
  1938. "type": "worker",
  1939. "assignment": "Assemble Coffeemaker",
  1940. "productId": "1",
  1941. "operation": "finish"
  1942. },
  1943. {
  1944. "jobId": "12",
  1945. "time": "2014-09-29T12:11:34.000+02:00",
  1946. "performedBy": "Paolo",
  1947. "type": "rao",
  1948. "assignment": "Go to station",
  1949. "productId": "1",
  1950. "operation": "start"
  1951. },
  1952. {
  1953. "jobId": "12",
  1954. "time": "2014-09-29T12:12:34.000+02:00",
  1955. "performedBy": "Paolo",
  1956. "type": "rao",
  1957. "assignment": "Go to station",
  1958. "productId": "1",
  1959. "operation": "finish"
  1960. },
  1961. {
  1962. "jobId": "13",
  1963. "time": "2014-09-29T12:12:35.000+02:00",
  1964. "performedBy": "Paolo",
  1965. "type": "rao",
  1966. "assignment": "Inspect finished Coffeemaker",
  1967. "productId": "1",
  1968. "operation": "start",
  1969. "prerequisites": [
  1970. {
  1971. "type": "Go to station",
  1972. "agentId": "Paolo"
  1973. }
  1974. ]
  1975. },
  1976. {
  1977. "jobId": "13",
  1978. "time": "2014-09-29T14:01:32.000+02:00",
  1979. "performedBy": "Paolo",
  1980. "type": "rao",
  1981. "assignment": "Inspect finished Coffeemaker",
  1982. "productId": "1",
  1983. "operation": "finish"
  1984. },
  1985. {
  1986. "jobId": "14",
  1987. "time": "2014-09-29T14:01:32.000+02:00",
  1988. "performedBy": "Biagio",
  1989. "type": "worker",
  1990. "assignment": "Transport to delivery",
  1991. "productId": "1",
  1992. "operation": "start"
  1993. },
  1994. {
  1995. "jobId": "14",
  1996. "time": "2014-09-29T15:34:10.000+02:00",
  1997. "performedBy": "Biagio",
  1998. "type": "worker",
  1999. "assignment": "Transport to delivery",
  2000. "productId": "1",
  2001. "operation": "finish"
  2002. },
  2003. {
  2004. "jobId": "1",
  2005. "time": "2014-09-29T15:34:11.000+02:00",
  2006. "performedBy": "Biagio",
  2007. "type": "worker",
  2008. "assignment": "Produce Coffeemaker",
  2009. "productId": "1",
  2010. "operation": "finish"
  2011. }
  2012. ];
  2013. }
  2014. // extend the eve.Agent prototype
  2015. EventGenerator.prototype = Object.create(eve.Agent.prototype);
  2016. EventGenerator.prototype.constructor = EventGenerator;
  2017. // define RPC functions, preferably in a separated object to clearly distinct
  2018. // exposed functions from local functions.
  2019. EventGenerator.prototype.rpcFunctions = {};
  2020. EventGenerator.prototype.rpcFunctions.loadEvents = function() {
  2021. return this.events.length - 1;
  2022. }
  2023. EventGenerator.prototype.rpcFunctions.nextEvent = function() {
  2024. this.rpc.request("agentGenerator",{method:'receiveEvent', params:this.events[this.eventCounter]}).done();
  2025. this.eventCounter += 1;
  2026. }
  2027. if (typeof window === 'undefined') {
  2028. module.exports = EventGenerator;
  2029. }