|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsky.monome.behavior.DynamicBehavior
sky.monome.behavior.BlinkingLight
public class BlinkingLight
Behavior for blinking light. The blinking cadency is independent of any other blinking light behavior, so it should be unsynchronized. The blinking effect is permanent.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class sky.monome.behavior.DynamicBehavior |
|---|
DynamicBehavior.DynamicBehaviorType |
| Field Summary | |
|---|---|
protected long |
delay
Delay for one blinking cycle. |
| Fields inherited from class sky.monome.behavior.DynamicBehavior |
|---|
dynamicBehaviorType, ledButtonCouple, thread |
| Constructor Summary | |
|---|---|
BlinkingLight(long delay)
Constructs a blinking light behavior with the specified delay. |
|
BlinkingLight(java.lang.Long delay)
Constructs a blinking light behavior with the specified delay. |
|
| Method Summary | |
|---|---|
void |
action()
Invoked when the behavior must execute its perpetual or one-time action. |
void |
init()
Initializes this behavior and the registered led/button couple. |
void |
notify(ButtonEvent.ButtonAction buttonAction)
Notifies this behavior that an action on the button is performed. |
| Methods inherited from class sky.monome.behavior.DynamicBehavior |
|---|
getLedButtonCouple, setLedButtonCouple, startThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final long delay
| Constructor Detail |
|---|
public BlinkingLight(long delay)
delay - Delay for one blinking cycle, in milliseconds.public BlinkingLight(java.lang.Long delay)
delay - Delay for one blinking cycle, in milliseconds.| Method Detail |
|---|
public void action()
throws java.lang.InterruptedException,
MonomeException
action in class DynamicBehaviorjava.lang.InterruptedException - When the virtual machine stops while a sleep operation.
MonomeException - When the led state of the registered led can't be modified.public void notify(ButtonEvent.ButtonAction buttonAction)
buttonAction - Button action that is performed.public void init()
MonomeException - When the initialization of this behavior and the registered led/button couple was not possible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||