it.unibo.jakta.agents.bdi.context.impl.AgentContextImpl.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.context.impl
import it.unibo.jakta.agents.bdi.actions.InternalAction
import it.unibo.jakta.agents.bdi.beliefs.BeliefBase
import it.unibo.jakta.agents.bdi.context.AgentContext
import it.unibo.jakta.agents.bdi.events.EventQueue
import it.unibo.jakta.agents.bdi.intentions.IntentionPool
import it.unibo.jakta.agents.bdi.plans.PlanLibrary
/** Implementation of Agent's [AgentContext] */
internal class AgentContextImpl(
override val beliefBase: BeliefBase,
override val events: EventQueue,
override val planLibrary: PlanLibrary,
override val internalActions: Map,
override val intentions: IntentionPool = IntentionPool.empty(),
) : AgentContext {
override fun toString(): String = """
AgentContext {
beliefBase = [$beliefBase]
events = $events
planLibrary = [${planLibrary.plans}]
intentions = [$intentions]
internalActions = [$internalActions]
}
""".trimIndent()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy