it.unibo.collektive.alchemist.device.sensors.EnvironmentVariables.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alchemist-incarnation-collektive Show documentation
Show all versions of alchemist-incarnation-collektive Show documentation
DSL for Aggregate Computing in Kotlin
package it.unibo.collektive.alchemist.device.sensors
/**
* Interface for generic environment variables.
*/
interface EnvironmentVariables {
/**
* Get the value of the variable with the given [name].
*/
operator fun get(name: String): T
/**
* Get the value of the variable with the given [name], or `null` if the variable is not defined.
*/
fun getOrNull(name: String): T?
/**
* Get the value of the variable with the given [name], or [default] if the variable is not defined.
*/
fun getOrDefault(name: String, default: T): T
/**
* Check if the variable with the given [name] is defined.
*/
fun isDefined(name: String): Boolean
/**
* Set the value of the variable with the given [name] to [value].
*/
operator fun set(name: String, value: T): T
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy