CanonicalDeviceScope

class CanonicalDeviceScope<St : Any, Co : Any, Sens : Any, Act : Any>(deviceName: String)

Scope for the system configuration using a canonical pulverization specification.

Constructors

Link copied to clipboard
constructor(deviceName: String)

Functions

Link copied to clipboard
fun addComponent(tag: String, component: ComponentRef)

Register a new component with the given tag. This method, even if it is public, should not be used directly.

Link copied to clipboard
infix fun ComponentRef.requires(capabilities: NonEmptySet<Capability>)

Specifies that a component needs a set of capabilities to be executed.

infix fun ComponentRef.requires(capability: Capability)

Specifies that a component needs a capability to be executed.

Link copied to clipboard

Register a Actuators component in the device.

Link copied to clipboard

Register a Behavior component in the device.

Link copied to clipboard

Register a Comm component in the device.

Link copied to clipboard

Register a Sensors component in the device.

Link copied to clipboard
inline fun <S : State<St>> withState(): ComponentRef

Register a State component in the device.