| |
- check_constraint(input_num, mode=1)
- This function check for days and hours constraints
:param input_num: input number
:type input_num:int
:param mode: mode flag for year and days
:type mode:int
:return: input_number after constraints
- convert(num)
- This function convert number
:param num: input numger
:type num:int
:return: output string
- find_ref()
- This function search for available ref file
:return: ref file name
- get_input()
- handle_input(input_string)
- This function convert string input to integer and return 0 in error
:param input_string: input sring
:type input_string:str
:return: integer number
- line(number, char='*')
- This function return line sign
:param number: number of char
:type number:int
:param char: char item
:type char:str
:return: response line as str
- print_sign()
- This function print logo and version
:return: None
- seperator(input_string, char=',')
- This function seperate input string to key,wattage,number,hours_per_day,days_per_year
:param input_string: input string before seperation
:type input_string:str
:return: list of parameters
|