
it.unibo.jakta.agents.bdi.actions.impl.InternalRequestImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakta-bdi Show documentation
Show all versions of jakta-bdi Show documentation
A Kotlin internal DSL for the definition of BDI agents
package it.unibo.jakta.agents.bdi.actions.impl
import it.unibo.jakta.agents.bdi.Agent
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.fsm.time.Time
import it.unibo.tuprolog.core.Substitution
import it.unibo.tuprolog.core.Term
data class InternalRequestImpl(
override val agent: Agent,
override val requestTimestamp: Time?,
override val arguments: List,
) : InternalRequest {
override fun reply(substitution: Substitution, effects: Iterable) =
InternalResponse(substitution, effects)
override fun reply(substitution: Substitution, vararg effects: AgentChange) =
reply(substitution, effects.asList())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy