Class Pathogen

    • Method Detail

      • fromJsonNode

        public static Pathogen fromJsonNode​(com.fasterxml.jackson.databind.JsonNode node)
        Parse a Pathogen from the given JsonNode.
        Parameters:
        node - The JsonNode that contains the "parsed" pathogen.
        Returns:
        The parsed Pathogen instance or null on errors.
      • toString

        public String toString()
        Modify toString() method to return the name of the given Pathogen.
        Overrides:
        toString in class Object
      • pathogensToNetwork

        public static float[] pathogensToNetwork​(List<Pathogen> pathogens)
        Parse the first round pathogens to the specified input layer for our neural networks.
        Parameters:
        pathogens - The list of pathogens that was encountered in the first round.
        Returns:
        A float array as the specified input layer for our neural networks.