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

Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Constructor Summary
AudioReceiver(Environment env, String[] channels)
          Create a new instance of AudioReceiver.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Get the component descriptor.
static void init(Environment env, Object closure)
          Initialize an environment with this component.
protected  void writeObject(ObjectOutputStream out)
          Serialize this audio receiver.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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