|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
An extension of the controller that allows external objects to. More...

Public Member Functions | |
| ControllerExtension (boolean local, boolean ui, String testDir) | |
| Constructor. | |
| ControllerExtension (boolean local, boolean ui, String testDir, int size) | |
| void | setUp (String configFile) |
| Configuration file loader. | |
| void | start () |
| Start the experiments. | |
| Public Member Functions inherited from frodo2.controller.Controller | |
| Controller (boolean local, boolean ui, String workDir) | |
| Constructor for the controller. | |
| Controller (DistributedSolver<?, ?, ?> solver) | |
| Constructor to use a solver in distributed mode. | |
| Controller (boolean local, boolean ui) | |
| Constructor for the controller. | |
| Controller (boolean local, boolean ui, String testDir, int size) | |
| void | addAgent (String agentId, AgentInterface<?> agent) |
| Function to add agents to the repository. | |
| void | addOutputPipe (String fromID, String toID, QueueOutputPipeInterface pipe) |
| Add agent toID's input pipe as an output pipe to agent fromID's queue. | |
| Collection< String > | getAgents () |
| void | exit (boolean quit) |
| This function must be called to stop the controller. | |
| void | setFinished () |
| This functions sets a boolean value to true when finished. | |
| void | endQueue () |
| This function is there mainly for test purposes and can be removed in the end. | |
| void | clearAgents () |
| Delete all the agents from the repository. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from frodo2.controller.Controller | |
| static void | main (String[] args) |
| Public Attributes inherited from frodo2.controller.Controller | |
| boolean | isSuspended = false |
| is true when the experiment is suspended and false otherwise | |
| boolean | isStopped = true |
| Is true when the experiment has stopped and false when it is running. | |
| boolean | isFinished = false |
| Is true when the experiments are finished. | |
| Object | isFinishedSync |
| Used to synchronized access to isFinished. | |
| Static Public Attributes inherited from frodo2.controller.Controller | |
| static final String | CONTROLLER = "frodo2.controller.Controller" |
| The destination ID of messages that are meant for the Controller. | |
| static PipeFactory | PipeFactoryInstance = new TCPPipeFactory() |
| The instance of the PipeFactory Visitor. | |
| static final int | PORT = 3000 |
| The port the controller is listening to. | |
| static Integer | daemonNb = null |
| counts the number of instantiated daemon in order to launch the controller when everybody is ready. | |
| Protected Attributes inherited from frodo2.controller.Controller | |
| Queue | controlQueue |
| The queue that is used to send and receive messages. | |
An extension of the controller that allows external objects to.
| frodo2.controller.TestController.ControllerExtension.ControllerExtension | ( | boolean | local, |
| boolean | ui, | ||
| String | testDir ) |
| frodo2.controller.TestController.ControllerExtension.ControllerExtension | ( | boolean | local, |
| boolean | ui, | ||
| String | testDir, | ||
| int | size ) |
| local | (self-explanatory) |
| ui | (self-explanatory) |
| testDir | (self-explanatory) |
| size | is the number of daemons to be instantiated |
References frodo2.controller.TestController.testDir.
| void frodo2.controller.TestController.ControllerExtension.setUp | ( | String | configFile | ) |
Configuration file loader.
For testing purposes only!
| configFile | the configuration file |
References frodo2.controller.userIO.UserIO.CONFIGURATION_MSG, and frodo2.controller.Controller.controlQueue.
| void frodo2.controller.TestController.ControllerExtension.start | ( | ) |
Start the experiments.
For testing purposes only!
References frodo2.controller.Controller.controlQueue, and frodo2.controller.userIO.UserIO.START_MSG.