source: cpp/frams/genetics/fL/fL_conv.cpp @ 1000

Last change on this file since 1000 was 797, checked in by Maciej Komosinski, 7 years ago

A more complete implementation of fB, fH, fL

File size: 610 bytes
Line 
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
5#include "fL_conv.h"
6#include "fL_general.h"
7
8SString GenoConv_fL0::convert(SString &i, MultiMap *map, bool using_checkpoints)
9{
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;
20}
Note: See TracBrowser for help on using the repository browser.