sky.monome.behavior
Class Member<G extends Member.Group<?,G>>


java.lang.Object

  extended by sky.monome.behavior.StaticBehavior

      extended by sky.monome.behavior.Member<G>

Type Parameters:
G - Type of group associated to this type of member.
All Implemented Interfaces:
Behavior
Direct Known Subclasses:
AbstractRadio, Pad

public abstract class Member<G extends Member.Group<?,G>>
extends StaticBehavior

Member behavior. With this type of behavior, grouped led/button couples can work together. By example, it is possible to make radio buttons, or synchronized leds. Each member can be included into a group represented by the Group class.

Since:
SkyMonome v1.1
Author:
PJ Skyman

Nested Class Summary
static class Member.Group<M extends Member<G>,G extends Member.Group<M,G>>
          Group of members which is responsible for a common behavior between all associated members.
 
Field Summary
protected  G group
          Associated group.
 
Fields inherited from class sky.monome.behavior.StaticBehavior
ledButtonCouple
 
Constructor Summary
protected Member(G group)
          Constructs a member that is associated to the specified group.
 
Method Summary
 G getGroup()
          Returns the group associated to this member behavior.
 
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
 
Methods inherited from interface sky.monome.behavior.Behavior
init, notify
 

Field Detail

group


protected final G extends Member.Group<?,G> group
Associated group.

Constructor Detail

Member


protected Member(G group)
Constructs a member that is associated to the specified group.

Parameters:
group - Group that will be associated to this member behavior.
Method Detail

getGroup


public G getGroup()
Returns the group associated to this member behavior.

Returns:
The group associated to this member behavior.