ZkSystemSpec

data class ZkSystemSpec(val id: String, val system: String, _params: MutableMap<String, ParamValue> = mutableMapOf())

ZkSystemSpec represents the specifications of a ZK System.

Constructors

Link copied to clipboard
constructor(id: String, system: String, _params: MutableMap<String, ParamValue> = mutableMapOf())

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: ByteArray)

Adds a ByteArray 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: Float)

Adds a Float 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, dataItem: DataItem): Boolean

Adds a DataItem parameter to the ZK system specification. Will add the parameter to the primitive value of the DataItem.

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