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

A reporter printing optimization result on screen. More...

#include <Reporter.hpp>

Collaboration diagram for samchon::example::interaction::Reporter:

Public Member Functions

 Reporter ()
 Default Constructor. More...
 
- Public Member Functions inherited from samchon::example::interaction::ChiefDriver
 ChiefDriver (IProtocol *master, int port)
 Construct from master and port number. More...
 

Static Public Member Functions

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

Protected Member Functions

void printTSP (shared_ptr< XML > xml)
 Print TSP result on screen. More...
 
void printPacker (shared_ptr< XML > xml)
 Print Packer result on screen. More...
 

Additional Inherited Members

- Protected Attributes inherited from samchon::example::interaction::ChiefDriver
IProtocolmaster
 A Master object containing the ChiefDriver. More...
 
int port
 A port number to open for the Chief system. More...
 
mutex mtx
 A mutex for realizing 1:1 server. More...
 

Detailed Description

A reporter printing optimization result on screen.

A reporter system prints optimization results on screen which are gotten from cheif system.

Of course, the optimizatino results came from the Chief system are came from Master systems and even the Master systems also got those optimization results from those own Slave systems.

The ReportSystem class is built for be helpful for users to comprehend using chain of responsibility pattern in network level.

[Inherited]
Parameters
masterA master object associated with the chief system.
portA port number to open for chief system.
Author
Jeongho Nam http://samchon.org

Definition at line 43 of file Reporter.hpp.

Constructor & Destructor Documentation

samchon::example::interaction::Reporter::Reporter ( )
inline

Default Constructor.

Definition at line 56 of file Reporter.hpp.

Member Function Documentation

void samchon::example::interaction::Reporter::printTSP ( shared_ptr< XML xml)
inlineprotected

Print TSP result on screen.

Parameters
xmlXML object representing a Scheduler of TSP.

Definition at line 91 of file Reporter.hpp.

void samchon::example::interaction::Reporter::printPacker ( shared_ptr< XML xml)
inlineprotected

Print Packer result on screen.

Parameters
xmlXML object representing a Packer.

Definition at line 107 of file Reporter.hpp.

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

Main function.

Definition at line 125 of file Reporter.hpp.


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