|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|

Classes | |
| class | SimpleAgent |
| A simple agent for testing purposes. More... | |
| class | LocalWhitePagesExtension |
| An extension of the local white pages that is able to return the list of agents. More... | |
Public Member Functions | |
| TestLocalWhitePages () | |
| Constructor. | |
| void | setUp () |
| void | tearDown () |
| void | testAgentAddress () throws Exception |
| Test the reception of an AGENT_ADDRESS message. | |
| void | testLocalAgentReporting () throws InterruptedException |
| Test the reception of LOCAL_AGENT_REPORTING. | |
| void | testKillAgents () throws InterruptedException |
| Test the reception of KILL_AGENTS. | |
| void | testLocalAgentAddressRequestKnown () throws InterruptedException |
| Test the reception of LOCAL_AGENT_ADDRESS_REQUEST for a known agent. | |
| void | testLocalAgentAddressRequestUnknown () throws InterruptedException, IOException |
| Test the reception of LOCAL_AGENT_ADDRESS_REQUEST for an unknown agent, i.e. | |
Package Attributes | |
| LocalWhitePagesExtension | lwp |
| The local whitepages. | |
| Queue | queue |
| A queue. | |
| Daemon | d |
| A daemon. | |
| QueueIOPipe | queueInputPipe |
| The general queue's input pipe. | |
| frodo2.daemon.TestLocalWhitePages.TestLocalWhitePages | ( | ) |
| void frodo2.daemon.TestLocalWhitePages.setUp | ( | ) |
References frodo2.daemon.LocalWhitePages.CONTROLLER_ID, d, lwp, queue, and queueInputPipe.
| void frodo2.daemon.TestLocalWhitePages.tearDown | ( | ) |
| void frodo2.daemon.TestLocalWhitePages.testAgentAddress | ( | ) | throws Exception |
Test the reception of an AGENT_ADDRESS message.
| Exception | if an error occurs |
References frodo2.controller.WhitePages.AGENT_ADDRESS, frodo2.communication.QueueInputPipeInterface.close(), d, frodo2.communication.PipeFactory.getSelfAddress(), frodo2.communication.PipeFactory.inputPipe(), lwp, frodo2.controller.Controller.PipeFactoryInstance, and queue.

| void frodo2.daemon.TestLocalWhitePages.testKillAgents | ( | ) | throws InterruptedException |
Test the reception of KILL_AGENTS.
| InterruptedException | if the thread is interrupted while sleeping |
References frodo2.controller.WhitePages.KILL_AGENTS, lwp, and queue.
| void frodo2.daemon.TestLocalWhitePages.testLocalAgentAddressRequestKnown | ( | ) | throws InterruptedException |
Test the reception of LOCAL_AGENT_ADDRESS_REQUEST for a known agent.
| InterruptedException | if the thread is interrupted while sleeping |
References frodo2.communication.Queue.addOutputPipe(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.agentReportLocal(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.askAddress(), d, frodo2.communication.Queue.end(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.getReceived(), queue, and frodo2.daemon.TestLocalWhitePages.SimpleAgent.sendTestMessage().

| void frodo2.daemon.TestLocalWhitePages.testLocalAgentAddressRequestUnknown | ( | ) | throws InterruptedException, IOException |
Test the reception of LOCAL_AGENT_ADDRESS_REQUEST for an unknown agent, i.e.
the central white pages is contacted
| InterruptedException | if the thread is interrupted while sleeping |
| IOException | if an I/O error occurred |
References frodo2.communication.Queue.addIncomingMessagePolicy(), frodo2.communication.Queue.addOutputPipe(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.agentReportGlobal(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.agentReportLocal(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.askAddress(), frodo2.controller.WhitePages.close(), frodo2.daemon.LocalWhitePages.CONTROLLER_ID, d, frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING, frodo2.communication.Queue.end(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.getReceived(), frodo2.communication.PipeFactory.getSelfAddress(), frodo2.communication.PipeFactory.inputPipe(), frodo2.controller.Controller.PipeFactoryInstance, queue, queueInputPipe, and frodo2.daemon.TestLocalWhitePages.SimpleAgent.sendTestMessage().

| void frodo2.daemon.TestLocalWhitePages.testLocalAgentReporting | ( | ) | throws InterruptedException |
Test the reception of LOCAL_AGENT_REPORTING.
| InterruptedException | if the thread is interrupted while sleeping |
References frodo2.communication.Queue.addOutputPipe(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.agentReportLocal(), frodo2.communication.Queue.end(), frodo2.daemon.TestLocalWhitePages.SimpleAgent.getReceived(), queue, queueInputPipe, and frodo2.daemon.TestLocalWhitePages.SimpleAgent.TEST.

|
package |
A daemon.
Referenced by setUp(), tearDown(), testAgentAddress(), testLocalAgentAddressRequestKnown(), and testLocalAgentAddressRequestUnknown().
|
package |
The local whitepages.
Referenced by setUp(), testAgentAddress(), and testKillAgents().
|
package |
A queue.
Referenced by setUp(), tearDown(), testAgentAddress(), testKillAgents(), testLocalAgentAddressRequestKnown(), testLocalAgentAddressRequestUnknown(), and testLocalAgentReporting().
|
package |
The general queue's input pipe.
Referenced by setUp(), testLocalAgentAddressRequestUnknown(), and testLocalAgentReporting().