|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This pipe has a list of messages ready to be pulled using pullMessage(). More...

Public Member Functions | |
| QueueInputPipeTrivial (Queue queue) | |
| Constructor. | |
| void | start () |
| void | run () |
| Constantly passes messages to the queue. | |
| void | addMessage (Message msg) |
| void | addMessage (MessageWrapper wrap) |
| Adds a message wrapper. | |
| void | close () |
| Terminates this pipe's thread. | |
| String | toDOT () |
Private Attributes | |
| LinkedList< MessageWrapper > | messages = new LinkedList <MessageWrapper> () |
| Messages waiting to be sent to the queue. | |
| boolean | keepGoing = true |
| Whether this pipe's thread should keep going or stop. | |
| Queue | queue |
| This pipe's queue. | |
This pipe has a list of messages ready to be pulled using pullMessage().
| frodo2.communication.QueueTest.QueueInputPipeTrivial.QueueInputPipeTrivial | ( | Queue | queue | ) |
| void frodo2.communication.QueueTest.QueueInputPipeTrivial.addMessage | ( | Message | msg | ) |
| msg | the message to set |
References messages.
Referenced by frodo2.communication.QueueTest.testMultipleInputPipes().
| void frodo2.communication.QueueTest.QueueInputPipeTrivial.addMessage | ( | MessageWrapper | wrap | ) |
| void frodo2.communication.QueueTest.QueueInputPipeTrivial.close | ( | ) |
Terminates this pipe's thread.
Implements frodo2.communication.QueueInputPipeInterface.
References keepGoing.
| void frodo2.communication.QueueTest.QueueInputPipeTrivial.run | ( | ) |
| void frodo2.communication.QueueTest.QueueInputPipeTrivial.start | ( | ) |
Referenced by QueueInputPipeTrivial().
| String frodo2.communication.QueueTest.QueueInputPipeTrivial.toDOT | ( | ) |
|
private |
|
private |
Messages waiting to be sent to the queue.
Referenced by addMessage(), addMessage(), and run().
|
private |
This pipe's queue.
Referenced by QueueInputPipeTrivial(), and run().