A Multiagent System for Scheduling Activities Onboard a Space System