I don't believe that is a very good installation, water can get to the electrics while under way and if the gen set is being used to backcharge house batteries, for instance, then you can cause a fire. If the battery charger is wetted down while under way, then you can cause a fire when you hook to shore power. That device belongs in the electrical closet.