agentland.device
Class AnotherDummyDeviceAgent
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.AnotherDummyDeviceAgent
- All Implemented Interfaces:
- Agent, AnotherDummyDevice, Device, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy
- public class AnotherDummyDeviceAgent
- extends DeviceAgent
- implements AnotherDummyDevice
A dummy device, whose state can be the size small, medium, or large.
- See Also:
DeviceAgent
,
AnotherDummyDevice
, Serialized Form
Method Summary |
boolean |
changeSize(int newSize)
Change the size. |
Methods inherited from class agentland.device.DeviceAgent |
addName, createStateChangeNotification, ensureState, getDefaultNames, getDefaultStateName, getName, getNames, getState, getState, getStateNames, hasName, quietException, resetAllStates, resetName, resetState, 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, resetState, setName, setState |
Methods inherited from interface agentland.util.Spy |
tell |
SMALL
public static final int SMALL
MEDIUM
public static final int MEDIUM
LARGE
public static final int LARGE
AnotherDummyDeviceAgent
public AnotherDummyDeviceAgent()
throws RemoteException
- Creates a new
AnotherDummyDeviceAgent
instance.
- Throws:
RemoteException
- if an error occurs
changeSize
public boolean changeSize(int newSize)
throws RemoteException
- Change the size.
- Specified by:
changeSize
in interface AnotherDummyDevice
- Parameters:
newSize
- the size to change to (must be SMALL, MEDIUM, or LARGE)- Returns:
- true on success, false otherwise.
- Throws:
RemoteException
- if an error occurs