Ignore:
Timestamp:
06/06/18 01:45:18 (6 years ago)
Author:
Maciej Komosinski
Message:

A more complete implementation of fB, fH, fL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_conv.cpp

    r780 r797  
     1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
     2// Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     3// See LICENSE.txt for details.
     4
    15#include "fL_conv.h"
     6#include "fL_general.h"
    27
    38SString GenoConv_fL0::convert(SString &i, MultiMap *map, bool using_checkpoints)
    49{
    5         return "";
     10        fL_Builder builder(NULL != map, using_checkpoints);
     11        if (builder.parseGenotype(i) != 0)  return "";
     12        double neededtime;
     13        Model *m = builder.developModel(neededtime);
     14        if (!m) return SString();
     15        if (NULL != map)
     16                m->getCurrentToF0Map(*map);
     17        SString gen = m->getF0Geno().getGenes();
     18        delete m;
     19        return gen;
    620}
Note: See TracChangeset for help on using the changeset viewer.