Class OutputMapperReader

java.lang.Object
net.maswag.falcaun.AbstractMapperReader
net.maswag.falcaun.OutputMapperReader

@Deprecated public class OutputMapperReader extends AbstractMapperReader
Deprecated.
Use OutputMapper instead. This class will be removed in a future release. It now uses OutputMapper internally for backward compatibility.
A class for reading and parsing output mapper data from files. outputMapper is a list of mappings from an abstract alphabet character to the concrete value. largest is a list of abstract alphabet chars representing a larger concrete value than any of the given concrete values. After construction, call parse() to initialize the mappings and then outputMapper and largest will be available.
  • Field Details

    • parsedData

      private final List<List<Double>> parsedData
      Deprecated.
    • largest

      private List<Character> largest
      Deprecated.
      List of characters representing a larger value than any of the concrete values. For example, given the concrete values [1.0, 2.0, 3.0], the character in largest represents a value in range (3.0, +inf)
    • outputMapper

      private List<Map<Character,Double>> outputMapper
      Deprecated.
      The output mapper, a list of mappings from an abstract alphabet character to its corresponding concrete value.
    • delegate

      private final OutputMapper delegate
      Deprecated.
  • Constructor Details

    • OutputMapperReader

      @Deprecated public OutputMapperReader(String filename) throws IOException
      Deprecated.

      Constructor for OutputMapperReader.

      Parameters:
      filename - The name of the file to read.
      Throws:
      IOException - if an error occurs while reading the file.
    • OutputMapperReader

      @Deprecated public OutputMapperReader(List<List<Double>> data)
      Deprecated.
      Use OutputMapper(List) instead.

      Constructor for OutputMapperReader from data.

      Parameters:
      data - a List object containing the parsed data.
  • Method Details

    • parse

      @Deprecated public void parse()
      Deprecated.
      You do not need to call this method directly anymore.
      Constructs the output mapper outputMapper and largest from the given concrete value lists. This method assigns characters to the concrete values and determines the largest character for each output dimension. When the instance is constructed by filename, this method reads and parses the specified file, then constructs them from the parsed data.