Implementing a hla-based distributed simulation for supply chain management: development of an arena based federate.