PlayLedPatternCommand.PlayLedPatternCommandBuilder

public static class PlayLedPatternCommand.PlayLedPatternCommandBuilder extends Object

Builder class for creatingPlayLedPatternCommand.

Constructors

Name Description
public PlayLedPatternCommandBuilder()

Methods

setFrames

public PlayLedPatternCommandBuilder setFrames(List<Frame> frames)

Sets frames for a given led pattern command.

Parameters

Name Description
List<Frame> frames

frames for given command.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setDurationInMs

public PlayLedPatternCommandBuilder setDurationInMs(int durationInMs)

Sets commands duration to play.

Parameters

Name Description
int durationInMs

duration in milliseconds for playing command.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setComponent

public PlayLedPatternCommandBuilder setComponent(Component component)

Sets component on which command to be played.

Parameters

Name Description
Component component

component on which command to be played.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setLedPatternType

public PlayLedPatternCommandBuilder setLedPatternType(LedPatternType ledPatternType)

Sets led pattern type for given led pattern command.

Parameters

Name Description
LedPatternType ledPatternType

led pattern type for a command.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setPlayType

public PlayLedPatternCommandBuilder setPlayType(PlayType playType)

Sets play type for given led pattern command.

Parameters

Name Description
PlayType playType

play type for a command.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setResumable

public PlayLedPatternCommandBuilder setResumable(boolean resumable)

Sets if pattern does not need to be resumable if halted.

Parameters

Name Description
boolean resumable

true if pattern needs to be resumed upon halting else false.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setHaltAll

public PlayLedPatternCommandBuilder setHaltAll(boolean haltAll)

Sets if pattern must resume upon interruption.

Parameters

Name Description
boolean haltAll

true if pattern needs to be resumed upon interruption else false.

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setIntensityLevel

public PlayLedPatternCommandBuilder setIntensityLevel(int intensityLevel)

Sets intensity level for given led pattern command.

Parameters

Name Description
int intensityLevel

0 (no LED) - 100 (Full intensity).

ReturnValue

Name Description
PlayLedPatternCommandBuilder

setStringUtils

public PlayLedPatternCommandBuilder setStringUtils(StringUtils stringUtilsInstance)

Parameters

Name Description
StringUtils stringUtilsInstance

ReturnValue

Name Description
PlayLedPatternCommandBuilder

build

public PlayLedPatternCommand build()

Returns builder for creating play led pattern commandPlayLedPatternCommand.

ReturnValue

Name Description
PlayLedPatternCommand