it.unibo.jakta.agents.bdi.actions.ExternalRequest.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
import it.unibo.jakta.agents.bdi.actions.effects.EnvironmentChange
import it.unibo.jakta.agents.bdi.actions.impl.ExternalRequestImpl
import it.unibo.jakta.agents.bdi.environment.Environment
import it.unibo.jakta.agents.fsm.time.Time
import it.unibo.tuprolog.core.Term
interface ExternalRequest : ActionRequest {
val environment: Environment
val sender: String
companion object {
fun of(
environment: Environment,
sender: String,
requestTime: Time?,
arguments: Iterable,
): ExternalRequest = ExternalRequestImpl(environment, sender, requestTime, arguments.toList())
fun of(environment: Environment, sender: String, requestTime: Time?, vararg arguments: Term): ExternalRequest =
ExternalRequestImpl(environment, sender, requestTime, arguments.asList())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy