jaugment2.mediaplayer
Class SemiNatRepresentation

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jaugment2.mediaplayer.SemiNatRepresentation

public class SemiNatRepresentation
extends java.rmi.server.UnicastRemoteObject
implements net.jini.core.event.RemoteEventListener

See Also:
Serialized Form

Inner Class Summary
private  class SemiNatRepresentation.LastTrackListener
           
private  class SemiNatRepresentation.NextTrackListener
           
private  class SemiNatRepresentation.PauseListener
           
private  class SemiNatRepresentation.StopListener
           
 
Field Summary
private static boolean debug
           
private  net.jini.core.event.RemoteEventListener lastTrackListener
           
private  net.jini.lease.LeaseRenewalManager lrm
           
private  net.jini.core.event.RemoteEventListener nextTrackListener
           
private  net.jini.core.event.RemoteEventListener pauseListener
           
private  MediaPlayerIF player
           
private  net.jini.core.event.RemoteEventListener stopListener
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname, serialVersionUID
 
Fields inherited from class java.rmi.server.RemoteObject
ref, serialVersionUID
 
Constructor Summary
SemiNatRepresentation(MediaPlayerIF p)
           
 
Method Summary
 void addProcessor(SemiNaturalInputProcessing p)
          register at a SemiNaturalInputProcessing
private  void index(java.lang.String path)
           
 void notify(net.jini.core.event.RemoteEvent p0)
          react to an event from a SemiNaturalInputProcessing
private  void parseLevel0(SemiNaturalInputProcessing.Word[] w, int i, SemiNaturalInputProcessing.SentenceParsedEvent evt)
           
private  void parseLevel1(SemiNaturalInputProcessing.Word[] w, int i, SemiNaturalInputProcessing.SentenceParsedEvent evt)
           
private  void parseLevel2(SemiNaturalInputProcessing.Word[] w, int i, java.lang.String query, int random, SemiNaturalInputProcessing.SentenceParsedEvent evt)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

lrm

private net.jini.lease.LeaseRenewalManager lrm

debug

private static final boolean debug

player

private MediaPlayerIF player

pauseListener

private net.jini.core.event.RemoteEventListener pauseListener

stopListener

private net.jini.core.event.RemoteEventListener stopListener

nextTrackListener

private net.jini.core.event.RemoteEventListener nextTrackListener

lastTrackListener

private net.jini.core.event.RemoteEventListener lastTrackListener
Constructor Detail

SemiNatRepresentation

public SemiNatRepresentation(MediaPlayerIF p)
                      throws java.rmi.RemoteException
Method Detail

addProcessor

public void addProcessor(SemiNaturalInputProcessing p)
                  throws java.rmi.RemoteException
register at a SemiNaturalInputProcessing

notify

public void notify(net.jini.core.event.RemoteEvent p0)
            throws net.jini.core.event.UnknownEventException,
                   java.rmi.RemoteException
react to an event from a SemiNaturalInputProcessing
Specified by:
notify in interface net.jini.core.event.RemoteEventListener

parseLevel0

private void parseLevel0(SemiNaturalInputProcessing.Word[] w,
                         int i,
                         SemiNaturalInputProcessing.SentenceParsedEvent evt)

index

private void index(java.lang.String path)
            throws java.lang.Exception

parseLevel1

private void parseLevel1(SemiNaturalInputProcessing.Word[] w,
                         int i,
                         SemiNaturalInputProcessing.SentenceParsedEvent evt)

parseLevel2

private void parseLevel2(SemiNaturalInputProcessing.Word[] w,
                         int i,
                         java.lang.String query,
                         int random,
                         SemiNaturalInputProcessing.SentenceParsedEvent evt)
Parameters:
random - 0=play if 1 file matches and display choices for <1 1=play a random one from the matches 2=play all matches