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

A chief system managing master systems. More...

#include <Chief.hpp>

Public Member Functions

 Chief (const string &ip)
 Construct from ip address. More...
 

Static Public Member Functions

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

Private Member Functions

void callPacker ()
 Call packer master system. More...
 
void callTSP ()
 Call tsp master system. More...
 

Detailed Description

A chief system managing master systems.

A chief system manages master systems. The chief system orders optimization processes to each master system and get reports of the optimization results from those master systems.

The chief system and Chief class is built for providing a guidance for external system module. You can study how to intergrate a system with external network system following the example, the chief system and Chief class.

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

Definition at line 46 of file Chief.hpp.

Constructor & Destructor Documentation

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

Construct from ip address.

Parameters
ipIP address of master systems.

Definition at line 61 of file Chief.hpp.

Member Function Documentation

void samchon::example::interaction::Chief::callPacker ( )
inlineprivate

Call packer master system.

Sends a message to packer system for ordering find the best solution of packaging with its basic data. The packer system who got the ordering message will find and reply the best optimization result about the basic data.

Definition at line 116 of file Chief.hpp.

void samchon::example::interaction::Chief::callTSP ( )
inlineprivate

Call tsp master system.

Sends a message to tsp system for ordering find the best solution of tsp with its basic data. The tsp system who got the ordering message will find and reply the best optimization result about the basic data.

Definition at line 158 of file Chief.hpp.

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

Main function.

Definition at line 179 of file Chief.hpp.


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