All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibo.jakta.agents.bdi.beliefs.RetrieveResult.kt Maven / Gradle / Ivy

There is a newer version: 0.11.102
Show newest version
package it.unibo.jakta.agents.bdi.beliefs

import it.unibo.jakta.agents.bdi.context.ContextUpdate
import it.unibo.jakta.agents.bdi.context.ContextUpdate.ADDITION
import it.unibo.jakta.agents.bdi.context.ContextUpdate.REMOVAL

/** Result of an update method over a BeliefBase */
data class RetrieveResult(
    /** Beliefs that are added or removed from the updatedBeliefBase */
    val modifiedBeliefs: List,

    /** The updated BeliefBase */
    val updatedBeliefBase: BeliefBase,
)

data class BeliefUpdate(
    val belief: Belief,
    val updateType: ContextUpdate,
) {
    companion object {
        fun removal(belief: Belief) = BeliefUpdate(belief, REMOVAL)
        fun addition(belief: Belief) = BeliefUpdate(belief, ADDITION)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy