it.unibo.jakta.agents.bdi.dsl.actions.InternalActionsScope.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.InternalAction
import it.unibo.jakta.agents.bdi.actions.InternalRequest
import it.unibo.jakta.agents.bdi.actions.InternalResponse
import it.unibo.jakta.agents.bdi.actions.effects.AgentChange
import it.unibo.jakta.agents.bdi.actions.impl.AbstractInternalAction
class InternalActionsScope :
ActionsScope() {
public override fun newAction(name: String, arity: Int, f: InternalActionScope.() -> Unit): InternalAction =
object : AbstractInternalAction(name, arity) {
override fun action(request: InternalRequest) {
InternalActionScope(this, request).f()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy