The Turnout Manager
nAn array of integers that keep track of which turnouts are owned by which trains
nInitialized to an array of zeroes which represents that no trains own any turnouts
nWhen trains are added resource manager fills array in turnout’s number with train’s id number
nWhen a train covers and uncovers photocells it the turnout manager is updated to represent the new allocations.
n