void ServerMessenger::processInput(string input) const
	{
		Message received = serializer.load<Message>(input);
		string command = received.getNextMessage();

		if(command == "ENROL")
		{
			enrolMember(received);
		}
		else if(command == "LOG HEALTH")
		{
			logHealthData(received);
		}
		else if(command == "GET LAST HEALTH")
		{
			getLastHealthLog(received);
		}
		else if(command == "REGISTER")
		{
			registerHealthClub(received);
		}
		else if(command == "HIRE")
		{
			hireEmployee(received);
		}
		else if(command == "LOG MEETING")
		{
			logTrainingMeeting(received);
		}
		else if(command == "GET SIM DATA")
		{
			getSimulationData(received);
		}
		else
		{
			throw Exception::CommunicationException("Command not recognised");
		}
	}
Exemple #2
0
QString MotionData::getMotionName() const
{
  return getSimulationData()->getMotionName();
}
Exemple #3
0
QString MotionData::getChannelName(int channel) const
{
  return getSimulationData()->getChannelName( channel );
}
Exemple #4
0
int MotionData::getChannelCount() const
{
  return getSimulationData()->getChannelCount();
}