Now that the instances for all the components are available, we can write the code to actually allow the scenario to work. In this section, the functionality.py file is split into separate parts, with a discussion of each code listing following its respective part.
We've seen the code in part 1 many times before, so there is no need to discuss it in detail:
functionality.py (part 1)
1 #!/usr/bin/env python32 """3 FuelFarm_functionality.py45 Purpose: Ensure valve/pump changes are passed to the rest of the system.67 Author: Cody Jackson89 Date: 6/18/1810 #################################11 Version 0.212 Added path extension for utility formulas13 Version 0.114 Initial build15 """
In part 2, we import the necessary ...