agentland.device.intelliCD.jukebox
Class SongListHandlerAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.device.intelliCD.CollectionHandlerAgent
                                      |
                                      +--agentland.device.intelliCD.jukebox.SongListHandlerAgent
All Implemented Interfaces:
Agent, CollectionHandler, Good, MetagluePrimitives, Remote, Serializable, SongListHandler, Spy

public class SongListHandlerAgent
extends CollectionHandlerAgent
implements SongListHandler

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class agentland.device.intelliCD.CollectionHandlerAgent
cnxn, collection
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
SongListHandlerAgent()
           
 
Method Summary
 boolean flatten(SongContainerElement el, boolean recursive)
           
 SongContainerElement getElementAt(int i)
           
 SongList getList()
           
 String getName()
           
 Song getNextSong()
           
protected  void init()
           
protected  SongList myList()
           
 boolean scramble(SongContainerElement el, boolean recursive)
           
 int size()
           
 String toString()
           
 
Methods inherited from class agentland.device.intelliCD.CollectionHandlerAgent
add, add, clear, getCollection, informAll, remove, setCollection, setConnection, setContainerAuthor, setContainerTitle, setSongAuthor, setSongDuration, setSongDuration, setSongTitle, updateContainer, updateSong
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getAlert, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface agentland.device.intelliCD.CollectionHandler
add, add, clear, getCollection, remove, setCollection, setConnection, setContainerAuthor, setContainerTitle, setSongAuthor, setSongDuration, setSongDuration, setSongTitle
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Constructor Detail

SongListHandlerAgent

public SongListHandlerAgent()
                     throws RemoteException
Method Detail

init

protected void init()
Overrides:
init in class CollectionHandlerAgent

myList

protected SongList myList()

getList

public SongList getList()
Specified by:
getList in interface SongListHandler

getName

public String getName()
Specified by:
getName in interface SongListHandler

scramble

public boolean scramble(SongContainerElement el,
                        boolean recursive)
Specified by:
scramble in interface SongListHandler

flatten

public boolean flatten(SongContainerElement el,
                       boolean recursive)
Specified by:
flatten in interface SongListHandler

getNextSong

public Song getNextSong()
Specified by:
getNextSong in interface SongListHandler

getElementAt

public SongContainerElement getElementAt(int i)
Specified by:
getElementAt in interface SongListHandler

size

public int size()
Specified by:
size in interface SongListHandler

toString

public String toString()
Overrides:
toString in class RemoteObject