|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A simple console based user interface. More...

Public Member Functions | |
| Console (Daemon daemon) | |
| The constructor. | |
| void | tellUser (String message) |
| void | stopRunning () |
| void | run () |
| The main loop that waits for user input is situated here. | |
| void | parseInput (String input) |
| A simple function that looks at the input and determines what to. | |
| Public Member Functions inherited from frodo2.daemon.userIO.UserIO | |
| UserIO (Daemon daemon) | |
| Constructor. | |
| void | start () |
| void | load (String filename) |
| Used to load a new configuration file. | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| void | registerController (AgentAddress address) |
| Report the daemon to the controller. | |
| void | exit () |
| Quit the daemon;. | |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Package Attributes | |
| boolean | done = false |
| This variable is used to determine whether the program should exit or not. | |
| Package Attributes inherited from frodo2.daemon.userIO.UserIO | |
| Daemon | daemon |
| The daemon this UI belongs to. | |
| Queue | queue |
| the daemons queue | |
Private Attributes | |
| final String | prefix |
| The command line prefix. | |
A simple console based user interface.
The console responds to the following commands
| frodo2.daemon.userIO.Console.Console | ( | Daemon | daemon | ) |
| void frodo2.daemon.userIO.Console.parseInput | ( | String | input | ) |
A simple function that looks at the input and determines what to.
| input | the input to be parsed |
References frodo2.daemon.userIO.UserIO.exit(), frodo2.daemon.userIO.UserIO.load(), frodo2.controller.Controller.PORT, frodo2.daemon.userIO.UserIO.registerController(), and tellUser().
Referenced by run().

| void frodo2.daemon.userIO.Console.run | ( | ) |
The main loop that waits for user input is situated here.
References done, and parseInput().

| void frodo2.daemon.userIO.Console.stopRunning | ( | ) |
Reimplemented from frodo2.daemon.userIO.UserIO.
References done.
| void frodo2.daemon.userIO.Console.tellUser | ( | String | message | ) |
Reimplemented from frodo2.daemon.userIO.UserIO.
Referenced by parseInput().
|
package |
This variable is used to determine whether the program should exit or not.
Referenced by run(), and stopRunning().
|
private |
The command line prefix.