agentland.device
Class TunerAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.device.TunerAgent
All Implemented Interfaces:
Agent, MetagluePrimitives, Remote, Serializable, Tuner

public class TunerAgent
extends AgentAgent
implements Tuner

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
TunerAgent()
           
 
Method Summary
 int getIntInputStatus()
           
 boolean getMuteStatus()
           
 boolean getPowerStatus()
           
 int getRelativeBaseVolume()
           
 String getStringInputStatus()
           
 void goPreset(int number)
           
 void input(String what)
           
 void inputAUX()
           
 void inputCD()
           
 void inputTuner()
           
 void inputTV()
           
 void inputVCR1()
           
 void inputVCR2()
           
 void muteOff()
           
 void muteOn()
           
 void resetStatus()
          turns volume down to 0, then brings back up to 5
 void setMuteStatus(boolean b)
           
 void setPowerStatus(boolean on)
          Use this to set the power status if it's wrong
 void setRelativeBaseVolume(int i)
           
 void stopContinuousVolume()
           
 void togglePower()
           
 void turnOff()
           
 void turnOn()
           
 void volumeContinuousDown()
           
 void volumeContinuousUp()
           
 void volumeDown()
           
 void volumeUp()
           
 
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, 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, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Constructor Detail

TunerAgent

public TunerAgent()
           throws RemoteException
Method Detail

setPowerStatus

public void setPowerStatus(boolean on)
                    throws RemoteException
Use this to set the power status if it's wrong
Specified by:
setPowerStatus in interface Tuner

getPowerStatus

public boolean getPowerStatus()
                       throws RemoteException
Specified by:
getPowerStatus in interface Tuner

goPreset

public void goPreset(int number)
              throws RemoteException
Specified by:
goPreset in interface Tuner

muteOn

public void muteOn()
            throws RemoteException
Specified by:
muteOn in interface Tuner

muteOff

public void muteOff()
             throws RemoteException
Specified by:
muteOff in interface Tuner

resetStatus

public void resetStatus()
                 throws RemoteException
turns volume down to 0, then brings back up to 5
Specified by:
resetStatus in interface Tuner

getRelativeBaseVolume

public int getRelativeBaseVolume()
                          throws RemoteException

setRelativeBaseVolume

public void setRelativeBaseVolume(int i)
                           throws RemoteException

volumeUp

public void volumeUp()
              throws RemoteException
Specified by:
volumeUp in interface Tuner

volumeDown

public void volumeDown()
                throws RemoteException
Specified by:
volumeDown in interface Tuner

volumeContinuousUp

public void volumeContinuousUp()
                        throws RemoteException
Specified by:
volumeContinuousUp in interface Tuner

volumeContinuousDown

public void volumeContinuousDown()
                          throws RemoteException
Specified by:
volumeContinuousDown in interface Tuner

stopContinuousVolume

public void stopContinuousVolume()
                          throws RemoteException
Specified by:
stopContinuousVolume in interface Tuner

togglePower

public void togglePower()
                 throws RemoteException
Specified by:
togglePower in interface Tuner

turnOn

public void turnOn()
            throws RemoteException
Specified by:
turnOn in interface Tuner

turnOff

public void turnOff()
             throws RemoteException
Specified by:
turnOff in interface Tuner

inputCD

public void inputCD()
             throws RemoteException
Specified by:
inputCD in interface Tuner

inputTuner

public void inputTuner()
                throws RemoteException
Specified by:
inputTuner in interface Tuner

inputTV

public void inputTV()
             throws RemoteException
Specified by:
inputTV in interface Tuner

inputVCR1

public void inputVCR1()
               throws RemoteException
Specified by:
inputVCR1 in interface Tuner

inputVCR2

public void inputVCR2()
               throws RemoteException
Specified by:
inputVCR2 in interface Tuner

inputAUX

public void inputAUX()
              throws RemoteException

input

public void input(String what)
           throws RemoteException
Specified by:
input in interface Tuner

getMuteStatus

public boolean getMuteStatus()
                      throws RemoteException
Specified by:
getMuteStatus in interface Tuner

setMuteStatus

public void setMuteStatus(boolean b)
                   throws RemoteException
Specified by:
setMuteStatus in interface Tuner

getStringInputStatus

public String getStringInputStatus()
                            throws RemoteException
Specified by:
getStringInputStatus in interface Tuner

getIntInputStatus

public int getIntInputStatus()
                      throws RemoteException
Specified by:
getIntInputStatus in interface Tuner