agentland.device
Class BaseAmplifierAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.device.DeviceAgent
|
+--agentland.device.BaseAmplifierAgent
- All Implemented Interfaces:
- Agent, Amplifier, BaseAmplifier, Device, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy
- Direct Known Subclasses:
- HKAVR7000AmplifierAgent
- public abstract class BaseAmplifierAgent
- extends DeviceAgent
- implements BaseAmplifier
- See Also:
- Serialized Form
Method Summary |
protected void |
connectionSet(int input,
int output,
int certainty)
This method should be called by children whenever they set a
connection -- this method will keep track of the state changes,
etc |
boolean |
getMuted()
|
int |
getVolumeLevel()
|
void |
resetState()
Resets the default state |
Methods inherited from class agentland.device.DeviceAgent |
addName, createStateChangeNotification, ensureState, getDefaultNames, getDefaultStateName, getName, getNames, getState, getState, getStateNames, hasName, quietException, resetAllStates, resetName, resetState, setDefaultStateName, setName, setState, throwException, updateState, updateState, updateState, updateState, updateState, updateState, updateState, updateState |
Methods inherited from class agentland.resource.ManagedAgent |
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank |
Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, 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, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou |
Methods inherited from interface agentland.device.Device |
addName, getName, getNames, getState, getState, getStateNames, hasName, resetAllStates, resetName, resetState, setName, setState |
Methods inherited from interface agentland.util.Spy |
tell |
BaseAmplifierAgent
public BaseAmplifierAgent()
throws RemoteException
resetState
public void resetState()
throws RemoteException
- Description copied from class:
DeviceAgent
- Resets the default state
- Specified by:
resetState
in interface Device
- Overrides:
resetState
in class DeviceAgent
getVolumeLevel
public int getVolumeLevel()
throws RemoteException
- Specified by:
getVolumeLevel
in interface BaseAmplifier
getMuted
public boolean getMuted()
throws RemoteException
- Specified by:
getMuted
in interface BaseAmplifier
connectionSet
protected void connectionSet(int input,
int output,
int certainty)
throws RemoteException
- This method should be called by children whenever they set a
connection -- this method will keep track of the state changes,
etc