ParallelFlowBuilder

@AutomationDsl
class ParallelFlowBuilder : AutomationFlowBuilder, StateReaderNodeDsl, ActionNodeDsl, SequentialDsl


Type-safe builder that builds a ParallelFlow node.

Summary

Public constructors

ParallelFlowBuilder(nodes: List<Node>, joinSemantic: JoinSemanticType)

Create a ParallelFlow instance.

Public functions

ParallelFlow

Build a ParallelFlow.

Inherited functions

From com.google.home.automation.ActionNodeDsl
open Unit
action(structure: Structure, block: ActionBuilder.() -> Unit)

Build and add an Action.

open Unit
action(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    block: ActionBuilder.() -> Unit
)

Build and add an Action.

open Unit
action(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    block: ActionBuilder.() -> Unit
)

Build an Action using an UnknownEntity.

From com.google.home.automation.AutomationFlowBuilder
open List<Node>
From com.google.home.automation.AutomationFlowContributor
From com.google.home.automation.SequentialDsl
From com.google.home.automation.StateReaderNodeDsl
open TypedExpression<T>
<T : Trait> stateReader(structure: Structure, trait: TraitFactory<T>)

Build a StateReader.

open TypedExpression<T>
<T : Trait> stateReader(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    trait: TraitFactory<T>
)

Build a StateReader.

open TypedExpression<T>
<T : Trait> stateReader(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    trait: TraitFactory<T>
)

Build a StateReader using an UnknownEntity.

Public constructors

ParallelFlowBuilder

ParallelFlowBuilder(
    nodes: List<Node> = emptyList(),
    joinSemantic: JoinSemanticType = JoinSemanticType.JsWhenAllFinished
)

Create a ParallelFlow instance.

Public functions

build

fun build(): ParallelFlow

Build a ParallelFlow.

Returns
ParallelFlow

A ParallelFlow instance.