one.radio
Class AudioReceiver
java.lang.Object
|
+--one.world.core.Component
|
+--one.radio.AudioReceiver
- All Implemented Interfaces:
- Serializable
- public final class AudioReceiver
- extends Component
Receives audio on a set of one.radio channels and plays it using an
AudioSink.
Usage: AudioReceiver [channel]*
Imported and Exported Event Handlers
Exported event handlers:
- main
- The main environment event handler.
Imported event handlers:
- request
- The environment request handler.
- sourceControl
- Accepts
AudioMessages and TextMessages.
- sinkControl
- Accepts
AudioSink.ControlEvents.
- Version:
- $Revision: 1.7 $
- See Also:
- Serialized Form
| Methods inherited from class one.world.core.Component |
declareExported, declareImported, equals, eventHandlers, getDescriptor, getEnvironment, getLinkedHandlers, getLinkedNumber, getTimer, hasEventHandler, hashCode, isFullyLinked, isLinked, isSealed, link, link, run, seal, unbox, undeclare, unlink, wrap |
AudioReceiver
public AudioReceiver(Environment env,
String[] channels)
- Create a new instance of
AudioReceiver.
- Parameters:
env - The environment for the new instance.channels - The channels to listen to.
writeObject
protected void writeObject(ObjectOutputStream out)
throws IOException
- Serialize this audio receiver.
getDescriptor
public ComponentDescriptor getDescriptor()
- Get the component descriptor.
- Overrides:
getDescriptor in class Component
- Following copied from class:
one.world.core.Component
- Returns:
- The component descriptor for this component.
init
public static void init(Environment env,
Object closure)
throws Throwable
- Initialize an environment with this component.
- Parameters:
env - The environment to initialize.closure - A string array containing a list of channels to
listen to.
(C) Copyright 2001 UW CSE