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

A slave system for solving Packer. More...

#include <PackerSlave.hpp>

Collaboration diagram for samchon::example::interaction::PackerSlave:

Public Member Functions

 PackerSlave (const string &ip, int port)
 Construct from ip and port 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 TSP 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 for solving Packer.

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

Definition at line 27 of file PackerSlave.hpp.

Constructor & Destructor Documentation

samchon::example::interaction::PackerSlave::PackerSlave ( const string &  ip,
int  port 
)
inline

Construct from ip and port of the master.

Parameters
ipIP address of the master.
portPort number of the master.

Definition at line 43 of file PackerSlave.hpp.

Member Function Documentation

virtual void samchon::example::interaction::PackerSlave::optimize ( shared_ptr< XML xml,
size_t  index,
size_t  size 
)
inlineoverrideprotectedvirtual

Optimize TSP 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 60 of file PackerSlave.hpp.

static void samchon::example::interaction::PackerSlave::main ( )
inlinestatic

Main function.

Definition at line 79 of file PackerSlave.hpp.


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