at:tutorial:appendix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
at:tutorial:appendix [2020/02/05 20:57] – adding elisag | at:tutorial:appendix [2024/10/03 22:19] (current) – fixing path to exceptions module elisag | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Appendix: Libraries ====== | ====== Appendix: Libraries ====== | ||
- | In the appendix, we explain useful libraries available to the AmbientTalk/ | + | In the appendix, we explain useful libraries available to the AmbientTalk/ |
+ | |||
+ | The Ambientalk standard library ('' | ||
===== Unit Testing Framework ===== | ===== Unit Testing Framework ===== | ||
Line 351: | Line 353: | ||
===== Custom Exceptions ===== | ===== Custom Exceptions ===== | ||
- | The module ''/ | + | The module ''/ |
< | < | ||
Line 390: | Line 392: | ||
===== Language Extensions ===== | ===== Language Extensions ===== | ||
- | The files in the '' | + | The files in the '' |
+ | |||
+ | |||
+ | |||
+ | =====Futures and Multifutures ===== | ||
==== Futures ==== | ==== Futures ==== | ||
Line 415: | Line 421: | ||
fut // return the future to a client | fut // return the future to a client | ||
</ | </ | ||
+ | |||
+ | The '' | ||
=== Auxilary functions in the futures module ==== | === Auxilary functions in the futures module ==== | ||
Line 487: | Line 495: | ||
When the message sent to a multireference is annotated with @Due(t), the timeout is applied to the implicit multifuture, | When the message sent to a multireference is annotated with @Due(t), the timeout is applied to the implicit multifuture, | ||
- | ==== Leased Object References ==== | + | |
+ | ===== Leased Object References | ||
The module ''/ | The module ''/ | ||
Line 517: | Line 526: | ||
+ | ===== TOTAM ===== | ||
+ | |||
+ | The module ''/ | ||
+ | |||
+ | Please have a look to [[: | ||
- | ==== Dynamic Variables ==== | + | ===== Dynamic Variables |
The module ''/ | The module ''/ | ||
Line 545: | Line 559: | ||
You can find more usage examples of dynamic variables in the unit test included in the file '' | You can find more usage examples of dynamic variables in the unit test included in the file '' | ||
- | ==== Ambient References ==== | + | ===== Ambient References |
Ambient references are defined in the module ''/ | Ambient references are defined in the module ''/ | ||
Line 559: | Line 573: | ||
Ambient references ship with two so-called " | Ambient references ship with two so-called " | ||
- | ==== Structural Types ==== | + | ===== Structural Types ===== |
The module ''/ | The module ''/ | ||
Line 596: | Line 610: | ||
More usage examples of structural types can be found in the unit test defined in the file '' | More usage examples of structural types can be found in the unit test defined in the file '' | ||
- | ==== Traits ==== | + | ===== Traits |
The module ''/ | The module ''/ | ||
Line 629: | Line 643: | ||
The files in the '' | The files in the '' | ||
+ | |||
==== Timing Utilities ==== | ==== Timing Utilities ==== | ||
Line 652: | Line 667: | ||
The timer module also defines a function '' | The timer module also defines a function '' | ||
- | The timer module defines | + | Finally, there is a variant |
+ | |||
+ | < | ||
+ | def testAsyncNearbyPlayerReply(){ | ||
+ | def nearbyPlayers := // search 2 nearby player orjbects; | ||
+ | // wait a bit so that there are the 2 members. | ||
+ | when: 2.seconds elapsedWithFuture: | ||
+ | self.assertEquals(2, | ||
+ | } | ||
+ | }; | ||
+ | </ | ||
==== Logging Framework ==== | ==== Logging Framework ==== |
at/tutorial/appendix.1580932643.txt.gz · Last modified: 2020/02/05 21:00 (external edit)