sky.monome.behavior
Class PassiveBehavior


java.lang.Object

  extended by sky.monome.behavior.StaticBehavior

      extended by sky.monome.behavior.PassiveBehavior

All Implemented Interfaces:
Behavior

public class PassiveBehavior
extends StaticBehavior

Led behavior that does nothing when it is notified and does nothing at the initialization.

Since:
SkyMonome v1.1
Author:
PJ Skyman

Nested Class Summary
static class PassiveBehavior.PassivityType
          Type of passivity.
 
Field Summary
protected  PassiveBehavior.PassivityType passivityType
          Type of passivity used by this passive behavior.
 
Fields inherited from class sky.monome.behavior.StaticBehavior
ledButtonCouple
 
Constructor Summary
PassiveBehavior()
          Constructs a passive behavior with the default type Passivity.INITIALIZED_OFF.
PassiveBehavior(PassiveBehavior.PassivityType passivityType)
          Constructs a passive behavior with the specified type.
 
Method Summary
 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.StaticBehavior
getLedButtonCouple, setLedButtonCouple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passivityType


protected final PassiveBehavior.PassivityType passivityType
Type of passivity used by this passive behavior.

Constructor Detail

PassiveBehavior


public PassiveBehavior()
Constructs a passive behavior with the default type Passivity.INITIALIZED_OFF.


PassiveBehavior


public PassiveBehavior(PassiveBehavior.PassivityType passivityType)
Constructs a passive behavior with the specified type.

Parameters:
passivityType - Type of behavior to adopt.
Method Detail

notify


public void notify(ButtonEvent.ButtonAction buttonAction)
Notifies this behavior that an action on the button is performed. This method does nothing.

Parameters:
buttonAction - Button action that is performed.

init


public void init()
Initializes this behavior and the registered led/button couple. Only led/button couples should call this method, and should call it only one time.