|
@@ 591-601 (lines=11) @@
|
| 588 |
|
|
| 589 |
|
// start description of timelines |
| 590 |
|
description += "\t\"timelines\": [\n"; |
| 591 |
|
for (Timeline tl : this.timelines) |
| 592 |
|
{ |
| 593 |
|
description += "\t\t{\n" |
| 594 |
|
+ "\t\t\t\"name\": \"" + tl.getComponent().getName() + "\",\n" |
| 595 |
|
+ "\t\t\t\"tokens\": [\n"; |
| 596 |
|
// get tokens |
| 597 |
|
for (Token token : tl.getTokens()) { |
| 598 |
|
description += "\t\t\t\t" + token + ",\n"; |
| 599 |
|
} |
| 600 |
|
description += "\t\t\t]\n" |
| 601 |
|
+ "\t\t},\n"; |
| 602 |
|
} |
| 603 |
|
|
| 604 |
|
// end description of timelines |
|
@@ 634-643 (lines=10) @@
|
| 631 |
|
|
| 632 |
|
// start description of observations |
| 633 |
|
description += "\t\"observations\": [\n"; |
| 634 |
|
for (Timeline tl : this.observations) { |
| 635 |
|
description += "\t\t{\n" |
| 636 |
|
+ "\t\t\tname: \"" + tl.getComponent().getName() + "\",\n" |
| 637 |
|
+ "\t\t\ttokens: [\n"; |
| 638 |
|
// get tokens |
| 639 |
|
for (Token token : tl.getTokens()) { |
| 640 |
|
description += "\t\t\t\t" + token + ",\n"; |
| 641 |
|
} |
| 642 |
|
description += "\t\t\t]\n" |
| 643 |
|
+ "\t\t},\n"; |
| 644 |
|
} |
| 645 |
|
|
| 646 |
|
// end description of observations |