An Agent-Based Model for Autonomous Planning in Distrubuted Critical Systems