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

Classes | |
| class | WhitePagesExtention |
| Extention of the white pages that enables one to get the list of daemons, the list of agents and the local address of the white pages. More... | |
Public Member Functions | |
| TestWhitePages () | |
| a simple constructor | |
| TestWhitePages (String name) | |
| void | setUp () throws Exception |
| void | tearDown () |
| void | testDaemonReporting () throws Exception |
| Test that a daemon that reports is handeled correctly. | |
| void | testAgentReporting () throws InterruptedException |
| Test that an agent that reports is handeled correctly. | |
| void | testKillAllAgents () throws InterruptedException |
| Test that when all agents should be killed they are removed from the list of agents. | |
Package Attributes | |
| WhitePagesExtention | whitePage |
| The white pages. | |
| Queue | queue |
| Queue that handles all the messages. | |
| QueueInputPipeInterface | input |
| An input pipe to test the sending of message to the daemon. | |
A JUnit test class for the white pages
| frodo2.controller.TestWhitePages.TestWhitePages | ( | ) |
a simple constructor
| frodo2.controller.TestWhitePages.TestWhitePages | ( | String | name | ) |
| name | the name of the test method |
| void frodo2.controller.TestWhitePages.setUp | ( | ) | throws Exception |
References frodo2.communication.PipeFactory.getSelfAddress(), input, frodo2.communication.PipeFactory.inputPipe(), frodo2.controller.Controller.PipeFactoryInstance, queue, and whitePage.

| void frodo2.controller.TestWhitePages.tearDown | ( | ) |
| void frodo2.controller.TestWhitePages.testAgentReporting | ( | ) | throws InterruptedException |
Test that an agent that reports is handeled correctly.
| InterruptedException | if the thread is interrupted while sleeping |
References frodo2.controller.messages.MessageAgentReporting.AGENT_REPORTING, frodo2.communication.PipeFactory.getSelfAddress(), frodo2.controller.Controller.PipeFactoryInstance, queue, and whitePage.

| void frodo2.controller.TestWhitePages.testDaemonReporting | ( | ) | throws Exception |
Test that a daemon that reports is handeled correctly.
| Exception | if an error occurs |
References frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING, frodo2.communication.PipeFactory.getSelfAddress(), frodo2.communication.PipeFactory.inputPipe(), frodo2.controller.Controller.PipeFactoryInstance, queue, testDaemonReporting(), and whitePage.
Referenced by testDaemonReporting().

| void frodo2.controller.TestWhitePages.testKillAllAgents | ( | ) | throws InterruptedException |
Test that when all agents should be killed they are removed from the list of agents.
| InterruptedException | if the thread is interrupted while sleeping |
References frodo2.controller.messages.MessageAgentReporting.AGENT_REPORTING, frodo2.controller.messages.MessageAgentReporting.DEAMON_REPORTING, frodo2.communication.PipeFactory.getSelfAddress(), frodo2.controller.ConfigurationManager.KILL_ALL_AGENTS, frodo2.controller.Controller.PipeFactoryInstance, queue, and whitePage.

|
package |
An input pipe to test the sending of message to the daemon.
Referenced by setUp(), and tearDown().
|
package |
Queue that handles all the messages.
Referenced by setUp(), tearDown(), testAgentReporting(), testDaemonReporting(), and testKillAllAgents().
|
package |
The white pages.
Referenced by setUp(), tearDown(), testAgentReporting(), testDaemonReporting(), and testKillAllAgents().