agentland.device
Interface AnotherDummyDevice

All Superinterfaces:
Agent, Device, Good, Managed, Remote, Spy
All Known Implementing Classes:
AnotherDummyDeviceAgent

public interface AnotherDummyDevice
extends Device

Interface for AnotherDummyDeviceAgent.

See Also:
Device

Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 boolean changeSize(int newSize)
          Change the size.
 
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.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
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
 

Method Detail

changeSize

public boolean changeSize(int newSize)
                   throws RemoteException
Change the size.
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