|
@@ 583-593 (lines=11) @@
|
| 580 |
|
|
| 581 |
|
// start description of timelines |
| 582 |
|
description += "\t\"timelines\": [\n"; |
| 583 |
|
for (Timeline tl : this.timelines) |
| 584 |
|
{ |
| 585 |
|
description += "\t\t{\n" |
| 586 |
|
+ "\t\t\t\"name\": \"" + tl.getComponent().getName() + "\",\n" |
| 587 |
|
+ "\t\t\t\"tokens\": [\n"; |
| 588 |
|
// get tokens |
| 589 |
|
for (Token token : tl.getTokens()) { |
| 590 |
|
description += "\t\t\t\t" + token + ",\n"; |
| 591 |
|
} |
| 592 |
|
description += "\t\t\t]\n" |
| 593 |
|
+ "\t\t},\n"; |
| 594 |
|
} |
| 595 |
|
|
| 596 |
|
// end description of timelines |
|
@@ 626-635 (lines=10) @@
|
| 623 |
|
|
| 624 |
|
// start description of observations |
| 625 |
|
description += "\tobservations: [\n"; |
| 626 |
|
for (Timeline tl : this.observations) { |
| 627 |
|
description += "\t\t{\n" |
| 628 |
|
+ "\t\t\tname: \"" + tl.getComponent().getName() + "\",\n" |
| 629 |
|
+ "\t\t\ttokens: [\n"; |
| 630 |
|
// get tokens |
| 631 |
|
for (Token token : tl.getTokens()) { |
| 632 |
|
description += "\t\t\t\t" + token + ",\n"; |
| 633 |
|
} |
| 634 |
|
description += "\t\t\t]\n" |
| 635 |
|
+ "\t\t},\n"; |
| 636 |
|
} |
| 637 |
|
|
| 638 |
|
// end description of observations |