parse
public static void parse(java.io.File file,
FunctionSet functionSet,
Resources resources)
Reads the specified file and attempts to enable
and disable the functions in the FunctionSet
accordingly.
Standard CGP .par files do not contain enough information
to determine if they match the currently selected function set.
For this reason, the parser assumes the function set is correct
and treats functions by their index rather than their name. Any
index outside the bounds of the function set is ignored and a
warning message is printed once parsing is complete.
- Parameters:
file
- the .par file to parse.
functionSet
- the function set whose functions should be modified.
resources
- used for printing console messages.