it.unibo.jakta.agents.bdi.intentions.IntentionPool.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.intentions
import it.unibo.jakta.agents.bdi.intentions.impl.IntentionPoolImpl
interface IntentionPool : Map {
fun updateIntention(intention: Intention): IntentionPool
fun nextIntention(): Intention
fun pop(): IntentionPool
fun deleteIntention(intentionID: IntentionID): IntentionPool
companion object {
fun empty(): IntentionPool = IntentionPoolImpl()
fun of(intentions: Map): IntentionPool = IntentionPoolImpl(intentions)
fun of(vararg intentions: Intention): IntentionPool = of(intentions.asList())
fun of(intentions: List): IntentionPool = IntentionPoolImpl(intentions.associateBy { it.id })
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy