it.unibo.jakta.agents.bdi.dsl.actions.ExternalActionsScope.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakta-dsl Show documentation
Show all versions of jakta-dsl Show documentation
A Kotlin internal DSL for the definition of BDI agents
package it.unibo.jakta.agents.bdi.dsl.actions
import it.unibo.jakta.agents.bdi.actions.ExternalAction
import it.unibo.jakta.agents.bdi.actions.ExternalRequest
import it.unibo.jakta.agents.bdi.actions.ExternalResponse
import it.unibo.jakta.agents.bdi.actions.effects.EnvironmentChange
import it.unibo.jakta.agents.bdi.actions.impl.AbstractExternalAction
class ExternalActionsScope :
ActionsScope() {
public override fun newAction(name: String, arity: Int, f: ExternalActionScope.() -> Unit): ExternalAction =
object : AbstractExternalAction(name, arity) {
override fun action(request: ExternalRequest) {
ExternalActionScope(this, request).f()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy