Last change
on this file since 1304 was
797,
checked in by Maciej Komosinski, 6 years ago
|
A more complete implementation of fB, fH, fL
|
File size:
610 bytes
|
Rev | Line | |
---|
[797] | 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 | |
---|
[780] | 5 | #include "fL_conv.h" |
---|
[797] | 6 | #include "fL_general.h" |
---|
[780] | 7 | |
---|
| 8 | SString GenoConv_fL0::convert(SString &i, MultiMap *map, bool using_checkpoints) |
---|
| 9 | { |
---|
[797] | 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; |
---|
[780] | 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.