MSCORN.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A storage for optional things to compute
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef MSCORN_h
00020 #define MSCORN_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <iostream>
00033 #include <utils/common/SUMOTime.h>
00034 
00035 
00036 // ===========================================================================
00037 // class declarations
00038 // ===========================================================================
00039 class MSVehicle;
00040 class OutputDevice;
00041 
00042 
00043 // ===========================================================================
00044 // class definitions
00045 // ===========================================================================
00051 class MSCORN {
00052 public:
00057     enum Function {
00058         // standard output
00059         CORN_OUT_TRIPDURATIONS,
00060         CORN_OUT_EMISSIONS,
00061         CORN_OUT_VEHROUTES,
00062         CORN_OUT_OLDROUTES,
00063         CORN_OUT_TAZ,
00064 
00065         CORN_VEH_DEPART_TIME,
00066         CORN_VEH_DEPART_DEF,
00067         CORN_VEH_ARRIVAL_DEF,
00068         CORN_VEH_DEPART_INFO,
00069         CORN_VEH_ARRIVAL_INFO,
00070         CORN_VEH_WAITINGTIME,
00071         CORN_MEAN_VEH_TRAVELTIME,
00072         CORN_MEAN_VEH_WAITINGTIME,
00073         CORN_VEH_SAVEREROUTING,
00074         CORN_VEH_LASTREROUTEOFFSET,
00075         CORN_VEH_BLINKER,
00076         CORN_VEH_NUMBERROUTE,
00077         CORN_VEH_VAPORIZED,
00078         CORN_VEH_SAVE_EDGE_EXIT,
00079 
00080         CORN_MAX
00081     };
00082 
00083     enum Pointer {
00084         CORN_P_VEH_DEPART_INFO,
00085         CORN_P_VEH_ARRIVAL_INFO,
00086         CORN_P_VEH_OLDROUTE,
00087         CORN_P_VEH_PASSENGER,
00088         CORN_P_VEH_EXIT_TIMES,
00089         CORN_P_MAX
00090     };
00091 
00092     static void init();
00093     static bool wished(Function f);
00094     static void setWished(Function f);
00095 
00096 
00097 private:
00098     static bool myWished[CORN_MAX];
00099     static bool myFirstCall[CORN_MAX];
00100 
00101 private:
00102     MSCORN();
00103     ~MSCORN();
00104 
00105 };
00106 
00107 
00108 #endif
00109 
00110 /****************************************************************************/
00111 

Generated on Wed May 5 00:06:31 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6