Version: 8.3.0
Decoder Class Referenceabstract

#include <decode.hxx>

Inheritance diagram for Decoder:
Collaboration diagram for Decoder:

Public Member Functions

virtual std::vector< double > * code (std::vector< double > &)=0
 
virtual std::vector< double > * decode (std::vector< double > &)=0
 
void echo (Solution &)
 

Protected Attributes

long size
 

Detailed Description

Definition at line 28 of file decode.hxx.

Member Function Documentation

virtual std::vector<double>* Decoder::code ( std::vector< double > &  )
pure virtual

Implemented in LinearDecoder.

virtual std::vector<double>* Decoder::decode ( std::vector< double > &  )
pure virtual

Implemented in LinearDecoder.

Referenced by echo(), and Maestro::put().

void Decoder::echo ( Solution sol)

Definition at line 25 of file decode.cxx.

References decode(), Solution::obj, and Solution::param.

Referenced by SalomeTest::finish(), and YACS::ENGINE::PluginSimplex::finish().

26 {
27  std::vector<double> *tmp;
28  std::vector<double>::iterator j;
29 
30  tmp = decode(*sol.param);
31  for (j=tmp->begin(); j!= tmp->end(); j++)
32  std::cout << *j << " " ;
33  std::cout << std::endl << "->";
34  delete tmp;
35  tmp = sol.obj;
36  for (j=tmp->begin(); j!= tmp->end(); j++)
37  std::cout << " " << *j ;
38  std::cout << std::endl ;
39 
40  return;
41 }

Member Data Documentation

long Decoder::size
protected

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