ZkSystemSpec

data class ZkSystemSpec(val id: String, val system: String)

ZkSystemSpec represents the specifications of a ZK System.

Constructors

Link copied to clipboard
constructor(id: String, system: String)

Properties

Link copied to clipboard
val id: String

the unique identifier of the ZK system.

Link copied to clipboard

Parameters for the ZK system.

Link copied to clipboard

the name of the ZK system.

Functions

Link copied to clipboard
fun addParam(key: String, value: Boolean)

Adds a Boolean parameter to the ZK system specification.

fun addParam(key: String, value: Double)

Adds a Double parameter to the ZK system specification.

fun addParam(key: String, value: Long)

Adds a Long parameter to the ZK system specification.

fun addParam(key: String, value: String)

Adds a String parameter to the ZK system specification.

fun addParam(key: String, value: JsonElement)

Adds parameter to the ZK system specification encoded in JSON.

fun addParam(key: String, value: DataItem)

Adds parameter to the ZK system specification encoded in CBOR.

Link copied to clipboard
inline fun <T> getParam(key: String): T?

Gets a parameter