Headers for the hmi04.cpp example
/* * hmi04.h * hmi04 * * Created by Jeff Greenberg on 4/4/05. * Copyright Jeff Greenberg. * * This library is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation; either version 2.1 of the License, or (at your option) any later * version. * This library is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License along * with this library; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * * This library is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation; either version 2.1 of the License, or (at your option) any later * version. * This library is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License along * with this library; if not, write to the Free Software Foundation, Inc., 59 Temple * Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef __hmi04__ #define __hmi04__ std::vector<measures> process_file(std::string dataFileName, dataFrame& df, lookupTable& t); void outputMeasures(const std::string& measuresFile, const std::vector<measures>& dependentMeasures, const int filenum); typedef struct { float rt; float rt_alarm; } reactionTime_t; reactionTime_t calculateSWReact(state curState, stateFlag& yawdevFlag, stateFlag& ldwFlag, timeSeries<float>& lane_pos, timeSeries<float>& swa, timeSeries<float>& swavel_f, timeSeries<float>& swaacc_f); reactionTime_t findBrakingReactionTime(state& Scenario, stateFlag& scenarioStep, timeSeries<float>& Ax, timeSeries<float>& throttle, timeSeries<float>& brake, stateFlag& fcwFlag); typedef enum { foil,ldw_tp_d,acc_tp_a,acc_tp_d,acc_fp_a,acc_fp_d,fcw_tp_a,fcw_tp_d, fcw_fp_a,fcw_fp_d,ldw_fp_a_L,ldw_fp_d_L,ldw_fp_a_R,ldw_fp_d_R, ldw_tp_a,no_op,rti_tp_a,rti_tp_d } scenario_t; bool isDistracted(std::string); std::vector<state> findLdwBlocks(stateFlag& ldwFlag); int findLdwOrder(std::vector<state>& ldwStates,int begIndex); int numPreceedingLdwFp(stateFlag sf); #endif