sky.monome.behavior.factory
Class MemberFactory


java.lang.Object

  extended by sky.monome.behavior.factory.MemberFactory

All Implemented Interfaces:
BehaviorFactory

public class MemberFactory
extends java.lang.Object
implements BehaviorFactory

Specialized behavior factory that produces exclusively members of groups of buttons. Note that this factory works properly only when the group class is enclosed in the member class.

Since:
SkyMonome v1.1
Author:
PJ Skyman

Constructor Summary
MemberFactory(Member.Group<? extends Member<?>,? extends Member.Group<?,?>> memberGroup)
          Constructs a member factory with the specified group object.
 
Method Summary
 Behavior createBehavior(java.lang.Object... arguments)
          Creates a member behavior with the help of optional arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberFactory


public MemberFactory(Member.Group<? extends Member<?>,? extends Member.Group<?,?>> memberGroup)
Constructs a member factory with the specified group object.

Parameters:
memberGroup - Group object that will be the group of all future produced members.
Method Detail

createBehavior


public Behavior createBehavior(java.lang.Object... arguments)

                        throws MonomeException
Creates a member behavior with the help of optional arguments.

Specified by:
createBehavior in interface BehaviorFactory
Parameters:
arguments - Optional arguments that can help the behavior factoring. Note that this kind of factory does not use these arguments.
Returns:
A member behavior freshly created.
Throws:
MonomeException - When the behavior factoring can't operate successfully.