FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.daemon.TestLocalWhitePages Class Reference
Inheritance diagram for frodo2.daemon.TestLocalWhitePages:

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.

Detailed Description

Author
Brammert Ottens
Thomas Leaute

Constructor & Destructor Documentation

◆ TestLocalWhitePages()

frodo2.daemon.TestLocalWhitePages.TestLocalWhitePages ( )

Member Function Documentation

◆ setUp()

void frodo2.daemon.TestLocalWhitePages.setUp ( )
See also
junit.framework.TestCase#setUp()

References frodo2.daemon.LocalWhitePages.CONTROLLER_ID, d, lwp, queue, and queueInputPipe.

◆ tearDown()

void frodo2.daemon.TestLocalWhitePages.tearDown ( )
See also
junit.framework.TestCase#tearDown()

References d, and queue.

◆ testAgentAddress()

void frodo2.daemon.TestLocalWhitePages.testAgentAddress ( ) throws Exception

◆ testKillAgents()

void frodo2.daemon.TestLocalWhitePages.testKillAgents ( ) throws InterruptedException

Test the reception of KILL_AGENTS.

Exceptions
InterruptedExceptionif the thread is interrupted while sleeping

References frodo2.controller.WhitePages.KILL_AGENTS, lwp, and queue.

◆ testLocalAgentAddressRequestKnown()

void frodo2.daemon.TestLocalWhitePages.testLocalAgentAddressRequestKnown ( ) throws InterruptedException

Test the reception of LOCAL_AGENT_ADDRESS_REQUEST for a known agent.

Exceptions
InterruptedExceptionif 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().

Here is the call graph for this function:

◆ testLocalAgentAddressRequestUnknown()

◆ testLocalAgentReporting()

void frodo2.daemon.TestLocalWhitePages.testLocalAgentReporting ( ) throws InterruptedException

Test the reception of LOCAL_AGENT_REPORTING.

Exceptions
InterruptedExceptionif 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.

Here is the call graph for this function:

Member Data Documentation

◆ d

Daemon frodo2.daemon.TestLocalWhitePages.d
package

◆ lwp

LocalWhitePagesExtension frodo2.daemon.TestLocalWhitePages.lwp
package

The local whitepages.

Referenced by setUp(), testAgentAddress(), and testKillAgents().

◆ queue

◆ queueInputPipe

QueueIOPipe frodo2.daemon.TestLocalWhitePages.queueInputPipe
package

The general queue's input pipe.

Referenced by setUp(), testLocalAgentAddressRequestUnknown(), and testLocalAgentReporting().


The documentation for this class was generated from the following file: