agentland.resource
Interface Managed
- All Superinterfaces:
- Agent, Good, Remote, Spy
- All Known Subinterfaces:
- AbstractDeviceManager, AlphaLEDSign, Apologizer, AppGrammar, Asker, Beeper, ConfuciusClock, ConfuciusSign, ConfuciusWeb, ConnectionMonitor, Daemon, Device, DeviceManager, DimmableLight, DisplayDevice, DisplayHTML, Drapes, DrapesManager, Exec, ForwardingResourceManager, GrammarCenter, GrammarInspector, GuiAsker, GuiManager, HTMLTextOutput, IR, Laurete, LEDManager, Light, LightManager, LynX10, ManagedPowerPointDisplay, ManagedSpeech, ManagedWindowsWebBrowser, ManualProjectionScreen, ManualProjector, Mess, MSWindow, MultiDevice, MultimodalAsker, Mumble, NewsDisplay, NewsModel, NewsSign, NewsWallGui, NewsWallScroll, PowerPointDisplay, ProjectionScreen, ProjectionScreenMeta, ProjectionScreenSpeech, Projector, ProjectorManager, Resolver, ResourceRetriever, SAM, SpeechOut, SpeechState, SpeechTextGetter, SuperSpy, Test, TextGetter, TextOutput, Translator, TwoWayX10, WindowsWebBrowser, X10, X10DimmableLight, X10Drapes, X10Light, X10ProjectionScreen
- All Known Implementing Classes:
- ManagedAgent
- public interface Managed
- extends Good
Method Summary |
Need |
getNeed(String requestName)
Asks the agent how badly it needs a given resource at a given
time. |
void |
replace(Resource old_r,
Resource new_r)
Replaces one resource with another |
void |
replace(String requestName,
String resourceName,
Resource new_r)
Does replacing given the name of a resource and the request bunch
that got the resource |
Vector |
resources(Filter f)
Get all resources used that match the given filter. |
void |
yank(ResourceBunch r)
Take away the resource bunch |
void |
yank(String requestName)
Yank the resource bunch that was allocated in response to
request with a particular name |
Methods inherited from interface agentland.util.Spy |
tell |
replace
public void replace(Resource old_r,
Resource new_r)
throws RemoteException
- Replaces one resource with another
replace
public void replace(String requestName,
String resourceName,
Resource new_r)
throws RemoteException
- Does replacing given the name of a resource and the request bunch
that got the resource
yank
public void yank(ResourceBunch r)
throws RemoteException
- Take away the resource bunch
yank
public void yank(String requestName)
throws RemoteException
- Yank the resource bunch that was allocated in response to
request with a particular name
getNeed
public Need getNeed(String requestName)
throws RemoteException
- Asks the agent how badly it needs a given resource at a given
time.
- Parameters:
requestName
- the name of the request (by which the agent
obtained the resource in the first place)- Returns:
- a number between 0 and 10 where 0 = not needed at all
and 10 means desperately needed
resources
public Vector resources(Filter f)
throws RemoteException
- Get all resources used that match the given filter. null
filter means get all resources used.
- Returns:
- Vector of AgentIDs