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"); } }
QString MotionData::getMotionName() const { return getSimulationData()->getMotionName(); }
QString MotionData::getChannelName(int channel) const { return getSimulationData()->getChannelName( channel ); }
int MotionData::getChannelCount() const { return getSimulationData()->getChannelCount(); }