Ignore:
Timestamp:
02/18/18 02:54:36 (5 years ago)
Author:
Maciej Komosinski
Message:

Unlimited number of model Parts/Joints/Neurons? when displaying the genotype-to-phenotype mapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/printconvmap.h

    r732 r739  
    77
    88#include <frams/util/sstring.h>
     9#include <frams/model/model.h>
     10#include <frams/util/multimap.h>
    911
    1012class MultiMap;
    1113
    12 void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map);
    13 void printModelMap(const SString& gen1, const MultiMap& map); //automaticaly combines the map with the ModelDisplayMap
    14 const MultiMap & getModelDisplayMap(); // mapping: true model -> display (so the regular map printing/debugging tools can be used for model maps, avoiding invonveniently huge numbers)
     14void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map, int left_column_padding = 15);
     15
     16class ModelDisplayMap
     17{
     18        MultiMap map;
     19        Model &model;
     20        int joint_offset, neuron_offset, max_element;
     21public:
     22        ModelDisplayMap(Model &m);
     23        void print(int left_column_padding = 15);
     24        const MultiMap & getMap() { return map; } //mapping: true model -> display (so the regular map printing/debugging tools can be used for model maps, avoiding invonveniently huge numbers)
     25};
    1526
    1627#endif
Note: See TracChangeset for help on using the changeset viewer.