Utility class for handling user input related to generator parameters. More...
Static Public Member Functions | |
| static ArrayList< Generator > | loadFromUser () |
| Accepts the no.of generators and generator parameters for each one as inputs from the user , creates generator object for each generator, adds all of them into arraylist and returns the arraylist. | |
| static ArrayList< Generator > | loadFromCSV (String filePath) |
| Loads generator data from a CSV file. | |
Utility class for handling user input related to generator parameters.
Prompts the user to enter total load demand, number of generators, and each generator's cost coefficients and capacity limits.
Creates and returns a list of Generator objects for further dispatch logic.
|
inlinestatic |
Loads generator data from a CSV file.
Each line in the file should contain generator parameters in the format: gen_id, min_capacity, max_capacity, a, b, c
| filePath | path to the CSV file |
|
inlinestatic |
Accepts the no.of generators and generator parameters for each one as inputs from the user , creates generator object for each generator, adds all of them into arraylist and returns the arraylist.