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 ?
getOrCreateSpaceWithID
for the second time as nothing is displayed and if I change the ID, something appends Space SpaceID [...] is created
.
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!
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).
onAgentKilled
.
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!
startAgentApplication
may be reimplemented. Additionnally, could you provide on the same issue a snipset of the code of Organizer
and of your JavaFX controller.
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)
}
...