/** * Get the names of the states of the actuators. * * @param rNames Array of names. */ void ForceSet:: getStateVariableNames(OpenSim::Array<std::string> &rNames) const { for(int i=0;i<getSize();i++) { ScalarActuator *act = dynamic_cast<ScalarActuator*>(&get(i)); if(act) { rNames.append(act->getStateVariableNames()); } } }