SarlSpecificationChecker | getSarlSpecificationVersion | |
Replaced by `getSarlSpecificationVersionObject`. Change due to the change of the return type
that is now of type `Version`.
</td/></tr>
</tbody></table>
### 1.4. Since 0.5
Deprecated Type | Deprecated Feature | Removal Version | Replacement |
DefaultContextInteractions | receive | 0.10 |
Replace `receiver.receive(new Event)` by `emit(new Event) [it.ID == receiver]`. The number of
functions in the API should be limited. This function is assumed to be redundant with `emit`.
|
## 2. Changes in the SARL Run-time Environment
## 3. Since 0.10 (Janus 3.0.10.0)
Deprecated Type | Deprecated Feature | Removal Version | Replacement |
Boot | setOffline(boolean) | 0.10 |
This parameter is not any more needed in the kernel of Janus v3. Indeed, the Janus v3 kernel is now
based on a new plugin architecture (based on the Bootique API).
With this plugin API, we could write a core software (the kernel) with a minimum set of features and
that could be extended with plugins by only adding these plugins on the classpath of the application.
In the context of Janus, the network features were moved into a plugin. One could easily add the
network feature by adding the corresponding plugin jar file in the classpath (equivalent to the old
`Boot.offline = false`) or remove it from the classpath (equivalent to `Boot.offline = true`), or
even add another networking plugin that is based on another technology (e.g. MQTT, etc.).
So, `Boot.offline` function is not any more into the Janus kernel (i.e. the Boot class, see below)
but into the configuration of the networking plugin. This plugin is under validation and is planned
to be back in SARL 0.12.
|
Boot | setVerboseLevel(level) | 0.10 |
This function is removed from `Boot`. The `SRE` utility class provides the replacing function.
Note that it must be called before any launch of agent since the configuration level of Janus is set at start up.
|
Boot | startJanus(type) | 0.10 |
In the old SRE 2.x, one would start an agent from Java by directly using the Boot
class in Janus:
import io.janusproject.Boot
Boot.startJanus(typeof(MyAgent))
In order to avoid any problems due to changes into the Janus implementation, in SRE 3.x it is preferable to use the SRE
utility class as follows:
```sarl
var sre = SRE::bootstrap
sre.startAgent(typeof(MyAgent))
```
|
## 4. Legal Notice
* Specification: SARL General-purpose Agent-Oriented Programming Language ("Specification")
* Version: 0.14
* Status: Draft Release
* Release: 2023-09-26
> Copyright © 2014-2023 [SARL.io, the Original Authors and Main Authors](https://www.sarl.io/about/index.html).
>
> Documentation text and medias are licensed under the Creative Common CC-BY-SA-4.0;
> you may not use this file except in compliance with CC-BY-SA-4.0.
> You may obtain a copy of [CC-BY-4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en).
>
> Examples of SARL code are licensed under the Apache License, Version 2.0;
> you may not use this file except in compliance with the Apache License.
> You may obtain a copy of the [Apache License](http://www.apache.org/licenses/LICENSE-2.0).
>
> You are free to reproduce the content of this page on copyleft websites such as Wikipedia.
Generated with the translator docs.generator 0.14.0-SNAPSHOT.
|