FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.controller.TestController.ControllerExtension Class Reference

An extension of the controller that allows external objects to. More...

Inheritance diagram for frodo2.controller.TestController.ControllerExtension:

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.

Detailed Description

An extension of the controller that allows external objects to.

  • set a configuration file
  • start an experiment
    Author
    brammertottens

Constructor & Destructor Documentation

◆ ControllerExtension() [1/2]

frodo2.controller.TestController.ControllerExtension.ControllerExtension ( boolean local,
boolean ui,
String testDir )

◆ ControllerExtension() [2/2]

frodo2.controller.TestController.ControllerExtension.ControllerExtension ( boolean local,
boolean ui,
String testDir,
int size )
Parameters
local(self-explanatory)
ui(self-explanatory)
testDir(self-explanatory)
sizeis the number of daemons to be instantiated

References frodo2.controller.TestController.testDir.

Member Function Documentation

◆ setUp()

void frodo2.controller.TestController.ControllerExtension.setUp ( String configFile)

Configuration file loader.

For testing purposes only!

Parameters
configFilethe configuration file

References frodo2.controller.userIO.UserIO.CONFIGURATION_MSG, and frodo2.controller.Controller.controlQueue.

◆ start()

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.


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