it.unibo.jakta.agents.bdi.actions.impl.ExternalRequestImpl.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.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.environment.Environment
import it.unibo.jakta.agents.fsm.time.Time
import it.unibo.tuprolog.core.Substitution
import it.unibo.tuprolog.core.Term
class ExternalRequestImpl(
override val environment: Environment,
override val sender: String,
override val requestTimestamp: Time?,
override val arguments: List,
) : ExternalRequest {
override fun reply(substitution: Substitution, effects: Iterable) =
ExternalResponse(substitution, effects)
override fun reply(substitution: Substitution, vararg effects: EnvironmentChange) =
reply(substitution, effects.asList())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy