package com.tonybeltramelli.lib.neural;

/**
 * @author Tony Beltramelli www.tonybeltramelli.com - created 17/04/2014
 */
public interface Encodable
{
    public static final char HIDDEN = 'h';
    public static final char OUTPUT = 'o';
    public static final char INPUT = 'i';
    public static final char WEIGHT = 'w';
    //
    public static final String DNA_REG_EXP = "([iho][0-9]+([w][0-9]+[ho][0-9]+))([w][0-9]+[ho][0-9]+)*";
    public static final String CONNECTION_REG_EXP = "([w][0-9]+[ho][0-9]+)";
    public static final String WEIGHT_REG_EXP = "([who][0-9]+)";
    //
    public String getEncoding();
}

@@ -374,53 +374,133 @@
  %22(%5B
-iho%5D%5B0-9%5D+(%5Bw%5D%5B0-9%5D+%5Bho%5D%5B0-9%5D+))(%5Bw%5D%5B0-9%5D+%5Bho
+%22+INPUT+%22%22+HIDDEN+%22%22+OUTPUT+%22%5D%5B0-9%5D+(%5B%22+WEIGHT+%22%5D%5B0-9%5D+%5B%22+HIDDEN+%22%22+OUTPUT+%22%5D%5B0-9%5D+))(%5B%22+WEIGHT+%22%5D%5B0-9%5D+%5B%22+HIDDEN+%22%22+OUTPUT+%22
 %5D%5B0-
@@ -566,19 +566,46 @@
  %22(%5B
-w%5D%5B0-9%5D+%5Bho
+%22+WEIGHT+%22%5D%5B0-9%5D+%5B%22+HIDDEN+%22%22+OUTPUT+%22
 %5D%5B0-
@@ -666,11 +666,38 @@
  %22(%5B
-who
+%22+WEIGHT+%22%22+HIDDEN+%22%22+OUTPUT+%22
 %5D%5B0-

update regular expression