### In this file is defined a Python class to manipulate the simualtion project. ### - This class must be inherited from th class 'SimulationProject' (no need to import it) ### - You can use the function "write(input_file, uint, nb_bits=16)" ### to write an integer of 'nb_bits' bits in the 'input_file'. ### To get this simulation class in Python scripts, please use the functions in manage.py as ### - search_simulations(repository) ### - get_simulation(repository='.', classname=None) class {{PROJECTCLASSNAME}}(SimulationProject): @classmethod def get_binary_path(cl): return 'project.bin' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def set_input(self, input): """ Write into the 'input' file of ELMO tool the parameters and the challenges for the simulation """ super().set_input(input) def set_input_for_each_challenge(self, input, challenge): """ Write into the 'input' file of ELMO tool the 'challenge' for the simulation """ super().set_input_for_each_challenge(input, challenge)