Samchon Framework for CPP
1.0.0
|
A slave system for optimizing something. More...
#include <Slave.hpp>
Public Member Functions | |
Slave (const string &ip, int port) | |
Construct from ip address and port number of master. More... | |
Protected Member Functions | |
virtual void | optimize (shared_ptr< XML > xml, size_t index, size_t size) |
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 for optimizing something.
Slave is an abstract and example class, for providing guidance of realizing parallel processsing system for useres, within framework of slave. The Slave class represents a slave system literally. You can study how to utilize the slave module in protocol.
A slave system (represented by Slave and SlaveDriver) is associated with a master (represented by Master and MasterSlave) or mediator (PackerMediator) system. When slave system gets order of optimization with its basic data, slave system calculates and derives the best solution and reports it to the master system.
|
inline |
|
inlineprotectedvirtual |
Optimize something and report the result.
xml | XML object representing a Travel. |
index | Starting index of a segmentation allocated to the Slave. |
size | Size of the segmentation. |
Reimplemented in samchon::example::interaction::PackerSlave, and samchon::example::interaction::TSPSlave.
|
inlineprotected |