Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Stéphane Galland
    @gallandarakhneorg
    Please, double check. A bug is always possible.
    Gillian Basso
    @gbasso

    Finally, I am not sure if it was the problem...
    I complete the information with some logs, maybe it could help...

    this.worldSpace = innerContext.getOrCreateSpaceWithID(OpenEventSpaceSpecification, uid)
    this.worldSpace.register(asEventListener)
    [INFO, 9:41:37am, Janus SRE] Space SpaceID [
      type = "SpaceID"
      id = 15029ea2-0c1b-437b-b4ce-9ef4b94744dc
      contextID = 005a4b66-cde2-4af5-8570-0adf92c3246d
      spaceSpec = interface io.sarl.util.OpenEventSpaceSpecification
    ] is created
    info("Joining the World organisation: " + occurrence.spaceID + " (" + occurrence.context + ").")
    
    val worldContext = occurrence.context
    val worldSpaceID = occurrence.spaceID
    
    val worldSpace = worldContext.getOrCreateSpaceWithID(OpenEventSpaceSpecification, worldSpaceID)
    worldSpace.register(asEventListener)
    [INFO, 9:41:37am, VirtualPedestrian-b087b4b7-8c67-4e40-b856-98c3697da5a2] Joining the World organisation: 15029ea2-0c1b-437b-b4ce-9ef4b94744dc (005a4b66-cde2-4af5-8570-0adf92c3246d).

    Do you find something wrong ?

    Gillian Basso
    @gbasso
    It seems to have the same problem if my Agent try to join the defaultSpace (of the innerContext). Also, no new EventSpace is created when I call getOrCreateSpaceWithID for the second time as nothing is displayed and if I change the ID, something appends Space SpaceID [...] is created.
    Stéphane Galland
    @gallandarakhneorg
    I have to study this behavior of the system.
    Gillian Basso
    @gbasso
    Thank you
    Stéphane Galland
    @gallandarakhneorg
    Eclipse is now release every 3 months (March, June, September, December). It causes compilation errors for SARL that force us to upgrade to the new version. Consequently, we need time for upgrading and validating the SARL product.
    The two release months of SARL should be changed to end of April (the "April" version) and end of October (the "October" version).
    We are very sorry for who is waiting for the new version.
    Gillian Basso
    @gbasso
    Hello, is it possible to have a Generic <T> in an Event ? In other words, I cannot create event MyEvent<T> to store a parameter as T, is it possible to overcome this ?
    Stéphane Galland
    @gallandarakhneorg
    From a pure technical point of view, it is possible. Now, we have to clearly define the semantic of this feature and how it is supposed to be supported in emitting agent and receving agent.
    In other words, emit(new MyEvent<Float>) is easy to understand. The question is related to a clear definition into the receiving agent regarding different syntaxes, e.g. "on MyEvent{}", "on MyEvent<Float> {}", "on MyEvent<? extends Number> {}", etc.
    Before implementing this feature, we need to have an agreement.
    Could you put an issue on Github in order to open the discussion with the community?
    Cornelius Carstens
    @ccarstens

    Hi, I am new to Sarl and just tried to set up Sarl in Eclipse with Maven. The Eclipse Download from the Website did not work, when launching Eclipse.app I receive an error message, that an error has occurred after choosing the working directory (macOS)

    I followed all the steps from the tutorial and just tried to set up a launch configuration in eclipse. I have Janus added as a dependency, and had maven update the project, but I cannot add the Janus Library to the launch config. I would be really grateful for help. Thank you!

    Stéphane Galland
    @gallandarakhneorg
    You do not need to add Janus into the launch configuration if the pom.xml file contains dependencies to Janus.
    Stéphane Galland
    @gallandarakhneorg
    Release Candidate 1 of SARL 0.9.0 is now reader for download and test.
    You could download, compile and test this RC.
    Stéphane Galland
    @gallandarakhneorg
    Version 0.9.0 is now released.
    Stéphane Galland
    @gallandarakhneorg
    Summary of the discussions during the first European Forum for SARL users and developers is available on: http://www.multiagent.fr/Conferences:EuSarlCon19
    Stéphane Galland
    @gallandarakhneorg
    SARL will move to Eclipse 2019-09 and the next associated Xtext.
    Stéphane Galland
    @gallandarakhneorg
    Release Candidate 1 of SARL is ready to be download and tested: http://www.sarl.io/download/index.html#download_devel_version
    shahshahkir
    @shahshahkir_twitter
    I am new to SARL but can run JADE hello agent on ubuntu. How can I run SARL Hello agent on ubuntu?
    Stéphane Galland
    @gallandarakhneorg
    Have you followed the installation and hello world tutorials on sarl.io.
    The document also explains how to run the agents, including on Ubuntu.
    Stéphane Galland
    @gallandarakhneorg
    Tim555
    @Tim555
    Hi, for my master thesis, I am investigating the possibility of using SARL for modeling and simulation. However, I have a few questions about the operational semantics of the Janus SRE. If run on a single device, if a new agent is spawned, is the new agent run in a separate process or does it use a new thread within a single process? How are events passed to the appropriate agents. Is there some literature available on these topics? Thanks in advance.
    Stéphane Galland
    @gallandarakhneorg
    The operational semantic of Janus associates one thread to each "on X" clause within an agent. It means what a single agent may run multiple threads at the same time.
    Because the Janus SRE is a Java application, a executor service is used for supporting the parallel execution of the "on X" clauses. Consequently, there is a single process for a single Janus instance, and all agents that are spawn into this JAnus instance are associated to threads.
    If you need multiple processes, you must launch manually (from the command line or with different Eclipse run configurations) several instances of Janus.
    By default, when an agent is fired, it is dispatched and provided to all the agents that are involved into the communication space in which the event is fired. You could limit the number of agents that are receiving an event by specifying a scope as argument of the "emit" function. This scope must be true for the agents that should receive the event.
    Stéphane Galland
    @gallandarakhneorg
    A paper that is explaining the basics of the operational semantics will be published during the next couple of weeks. Send to me stephane.galland@utbm.fr an email in order to obtain a draft copy of this paper.
    Markus Klinik
    @mklinik
    Hi! I'm running SARL from Java using SREBootstrap. I want to run the same simulation multiple times, using different start parameters. For this I would like to wait until all agents have killed themselves and then start over. Is there a way to wait blocking until the simulation is done?
    Stéphane Galland
    @gallandarakhneorg
    Dear @mklinik. New release of SARL 0.11 includes listener registration on the SREBootstrap. You could have benefit of that feature.

    I'm glade to announce the major release of SARL version 0.11.

    In addition to the traditional bug fixes, four major changes are available: Janus version 3 (a total re-implementation in SARL of the official SARL virtual machine); New types of participants in spaces (making the difference between agents and user interface); New agent spawning API (more robust and parallel); New tool for SARL contributors (pre-configured Eclipse IDE for SARL contributors).

    Stéphane Galland
    @gallandarakhneorg
    Dear @mklinik, I noticed that you would like to have access to AgentKilled events. Basically, you should register your listener on the space in which the event is emitted. A complete example is provided here. See the function onAgentKilled.
    Markus Klinik
    @mklinik
    Thanks a lot for the answer, I'll give it a try.
    Yannic
    @yannic7

    Hello everyone! Quick question about events: I created a GUI for my agent application and I try to emit an "SetupSettings" event (exactly like in the fireworks example) to my agent like this:

        var ^event : SetupSettings = new SetupSettings(s1, s2, rounds, matches)
        startAgentApplication(typeof(Organizer), this.launchedAgent) [
            ^event.emitToAgents
        ]

    However, the "on SetupSettings { ... }" section in my "Organizer" agents never runs. Does anybody know what my problem is? Thanks!

    Stéphane Galland
    @gallandarakhneorg
    Dear @yannic7 , are you using version 0.11 of SARL ?
    Stéphane Galland
    @gallandarakhneorg
    Please submit an issue on Github with the details of your configuration. It may be a bug into the implementation of the JavaFX helpers. Indeed, the startAgentApplication may be reimplemented. Additionnally, could you provide on the same issue a snipset of the code of Organizer and of your JavaFX controller.
    Yannic
    @yannic7

    Yes, I'm using 0.11.

    This is the specific part of my JavaFX controller:

    @FXML
    def startMatch() {
        rounds = Integer.valueOf(roundNum.getText())
        matches = Integer.valueOf(gameNum.getText())
    
        var ^event : SetupSettings = new SetupSettings(s1, s2, rounds, matches)
        this.launchedAgent = UUID::randomUUID
        startAgentApplication(typeof(Organizer), this.launchedAgent) [
            ^event.emitToAgents
        ]
    }

    And this is the part of my Organizer agent:

    agent Organizer {
    uses Lifecycle, Schedules, DefaultContextInteractions, Logging

    var s1 : String
    var s2 : String
    var matches : int
    var rounds : int
    
    on SetupSettings {
        this.s1 = occurrence.s1
        this.s2 = occurrence.s2
        this.matches = occurrence.matches
        this.rounds = occurrence.rounds
        info("s1 = " + this.s1 + ", s2 = " + this.s2)
        info("matches = " + this.matches + ", rounds: " + this.rounds) 
    }
    
     ...
    s1 and s2 are always null, matches and rounds are always 0. I can submit an issue, I just wanted to make sure that I'm not misusing the functions.
    Stéphane Galland
    @gallandarakhneorg
    Thx, I will explore the code of the JavaFX API and the agent's event bus.
    Stéphane Galland
    @gallandarakhneorg
    A workaround may be to use directly the SRE and SREBootstrap API that is invoked by startAgentApplication. You could take a look to the code of startAgentApplication to help you.
    Zifro96
    @Zifro96
    Hi, I'm new to this environment, is there a way to print all the information of the agents, spaces and places active at the time of the command launch?
    Thank you
    Stéphane Galland
    @gallandarakhneorg
    Dear @Zifro96 . This feature is not yet available. We have just added the probing mechanism into the unstable version. This mechanism will help to extract the information that you have mentionned. It could be added in a coming version. Nevertheless, all information is available through programmatic way. We could help you on this way.
    @Zifro96, do you search for a command line interface, a Eclipse-based interface, or whatever, for showing this information?
    Zifro96
    @Zifro96
    Any solution is fine, thanks for the reply
    Stéphane Galland
    @gallandarakhneorg
    You could push an issue on the Github of SARL that provides details on your expected needs.
    Zifro96
    @Zifro96
    Ok thanks for the advice