org.robokind.api.animation.factory
Class ChannelFactory
java.lang.Object
org.robokind.api.animation.factory.ChannelFactory
- All Implemented Interfaces:
- org.jflux.api.core.Source<Channel>
public class ChannelFactory
- extends Object
- implements org.jflux.api.core.Source<Channel>
A class for creating Channels.
- Author:
- Matthew Stevenson
Constructor Summary |
ChannelFactory(int id,
String name)
Creates a ChannelFactory for creating channels with the given values. |
Method Summary |
Channel |
getValue()
Returns a new Channel with the given ServoParameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelFactory
public ChannelFactory(int id,
String name)
- Creates a ChannelFactory for creating channels with the given values.
- Parameters:
id
- logical id of the channelname
- name of the channel
getValue
public Channel getValue()
- Returns a new Channel with the given ServoParameters.
- Specified by:
getValue
in interface org.jflux.api.core.Source<Channel>
- Returns:
- a new Channel with the given ServoParameters
Copyright © 2011-2013. All Rights Reserved.