agentland.device.intelliCD
Class LittleButtonAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.device.intelliCD.ButtonAgent
                                      |
                                      +--agentland.device.intelliCD.LittleButtonAgent
All Implemented Interfaces:
Agent, Button, Good, LittleButton, MetagluePrimitives, Remote, Serializable, Spy

public class LittleButtonAgent
extends ButtonAgent
implements LittleButton

A simplified Button. This has fast become the primary interaction with the IntelliCD Player.

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  int POSITIVE_SCROLL
           
protected  Timer rolex
           
protected  int scrollIncrement
           
protected  Tuner tuner
           
protected  JButton volumeDown
           
protected  JButton volumeUp
           
 
Fields inherited from class agentland.device.intelliCD.ButtonAgent
curDesignation, curSong, curSongPanel, curSongText, frame, global_status, hateButton, hateIcon, ICON_LOCATION, jukebox, likeIcon, loveIcon, my_status, neutralIcon, nextBest, nextBestPanel, nextBestScroll, nextBestShown, nextBestToggle, pauseButton, PAUSED, pauseIcon, play_state, player, playIcon, PLAYING, selectedSong, skullIcon, songTreeToggle, statusLabel, stopButton, stopIcon, STOPPED, timer, treeIcon, tunerControl
 
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
LittleButtonAgent()
           
 
Method Summary
protected  void buildFrame()
          The main method for creating the button interface.
protected  void setSongInfo(String title, String author)
          Displays information about the current song.
 void songEvent(Secret secret, SongChangeEvent e)
          Handle an incoming song change.
protected  void startJukebox()
          Creates the jukebox interface.
protected  void timerEvent(TimerEvent e)
          Handle an incoming event updating the time left to play a song.
 String toString()
           
protected  void updateSongViewport()
           
 
Methods inherited from class agentland.device.intelliCD.ButtonAgent
getPlayer, getYucky, inform, loadIcons, nextBestShow, reactionEvent, sendYucky, showNextBest, updateStatus
 
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.Button
inform
 
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
 

Field Detail

POSITIVE_SCROLL

protected int POSITIVE_SCROLL

scrollIncrement

protected int scrollIncrement

rolex

protected Timer rolex

volumeUp

protected JButton volumeUp

volumeDown

protected JButton volumeDown

tuner

protected Tuner tuner
Constructor Detail

LittleButtonAgent

public LittleButtonAgent()
                  throws RemoteException
Method Detail

buildFrame

protected void buildFrame()
Description copied from class: ButtonAgent
The main method for creating the button interface. This will assemble all the components into a JPanel and make it visible.
Overrides:
buildFrame in class ButtonAgent

toString

public String toString()
Overrides:
toString in class ButtonAgent

startJukebox

protected void startJukebox()
                     throws RemoteException
Description copied from class: ButtonAgent
Creates the jukebox interface. This is actually a separate agent, documented elsewhere.
Overrides:
startJukebox in class ButtonAgent
Following copied from class: agentland.device.intelliCD.ButtonAgent
See Also:
Jukebox

updateSongViewport

protected void updateSongViewport()

setSongInfo

protected void setSongInfo(String title,
                           String author)
Description copied from class: ButtonAgent
Displays information about the current song. In this agent, this does nothing, but subclasses might choose to override it.
Overrides:
setSongInfo in class ButtonAgent

songEvent

public void songEvent(Secret secret,
                      SongChangeEvent e)
Description copied from class: ButtonAgent
Handle an incoming song change.
Overrides:
songEvent in class ButtonAgent

timerEvent

protected void timerEvent(TimerEvent e)
Description copied from class: ButtonAgent
Handle an incoming event updating the time left to play a song.
Overrides:
timerEvent in class ButtonAgent