A slave system solving TSP.
More...
#include <TSPSlave.hpp>
|
| TSPSlave (const string &ip) |
| Construct from ip address of the master. More...
|
|
| Slave (const string &ip, int port) |
| Construct from ip address and port number of master. More...
|
|
|
virtual void | optimize (shared_ptr< XML > xml, size_t index, size_t size) override |
| Optimize something and report the result. More...
|
|
void | sendOptimization (shared_ptr< XML > xml) |
| Send (report) optimization result to its master system. More...
|
|
A slave system solving TSP.
- [Inherited]
- Author
- Jeongho Nam http://samchon.org
Definition at line 28 of file TSPSlave.hpp.
samchon::example::interaction::TSPSlave::TSPSlave |
( |
const string & |
ip | ) |
|
|
inline |
Construct from ip address of the master.
- Parameters
-
ip | IP address of the master. |
Definition at line 43 of file TSPSlave.hpp.
virtual void samchon::example::interaction::TSPSlave::optimize |
( |
shared_ptr< XML > |
xml, |
|
|
size_t |
index, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Optimize something and report the result.
- Parameters
-
xml | XML object representing a Travel. |
index | Starting index of a segmentation allocated to the Slave. |
size | Size of the segmentation. |
Reimplemented from samchon::example::interaction::Slave.
Definition at line 53 of file TSPSlave.hpp.
static void samchon::example::interaction::TSPSlave::main |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file:
- D:/OneDrive/Project/Samchon/framework/cpp/samchon/examples/interaction.bak/TSPSlave.hpp