#include #include "PingObject.hh" #ifndef SEQUENTIAL //we want a prallel run so include LogicalProcess.hh #include "LogicalProcess.hh" #else //we want a sequential run so include SequentialLP.hh #include "SequentialLP.hh" #endif #ifndef SEQUENTIAL //we want a parallel run so include MPI files #ifdef MPI extern "C" { #include "mpi.h" } #endif #endif //Number of Logical Processes hardcoded to two const int NUMLPS = 2 ; //set SIMUNTIL's in Logical Process classes #ifndef SEQUENTIAL const VTime LogicalProcess::SIMUNTIL = PINFINITY; #else const VTime SequentialLP::SIMUNTIL = PINFINITY; #endif int main(int argc, char **argv) { int numPlayers , numBalls ; ifstream CONFIG_FILE; CONFIG_FILE.open("ping.config"); CONFIG_FILE >> numPlayers >> numBalls ; cout <<"From ping.config: numPlayers is " <