Samchon Framework for CPP  1.0.0
samchon::example::interaction::TSPSlave Class Reference

A slave system solving TSP. More...

#include <TSPSlave.hpp>

Collaboration diagram for samchon::example::interaction::TSPSlave:

Public Member Functions

 TSPSlave (const string &ip)
 Construct from ip address of the master. More...
 
- Public Member Functions inherited from samchon::example::interaction::Slave
 Slave (const string &ip, int port)
 Construct from ip address and port number of master. More...
 

Static Public Member Functions

static void main ()
 Main function. More...
 

Protected Member Functions

virtual void optimize (shared_ptr< XML > xml, size_t index, size_t size) override
 Optimize something and report the result. More...
 
- Protected Member Functions inherited from samchon::example::interaction::Slave
void sendOptimization (shared_ptr< XML > xml)
 Send (report) optimization result to its master system. More...
 

Detailed Description

A slave system solving TSP.

[Inherited]
Author
Jeongho Nam http://samchon.org

Definition at line 28 of file TSPSlave.hpp.

Constructor & Destructor Documentation

samchon::example::interaction::TSPSlave::TSPSlave ( const string &  ip)
inline

Construct from ip address of the master.

Parameters
ipIP address of the master.

Definition at line 43 of file TSPSlave.hpp.

Member Function Documentation

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
xmlXML object representing a Travel.
indexStarting index of a segmentation allocated to the Slave.
sizeSize 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

Main function.

Definition at line 72 of file TSPSlave.hpp.


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