PursuingData.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00028 
00029 
00030 
00031 
00032 #ifndef __PURSUING_DATA_H_
00033 #define __PURSUING_DATA_H_
00034 
00035 #ifdef MIP_HOST_APPLE
00036 #include <applePatch.h>
00037 #endif
00038 
00039 #include <fstream>
00040 
00041 #include <Task.h>
00042 #include <Resource.h>
00043 #include <SharedMem.h>
00044 #include <Time.h>
00045 
00046 #include <CommonOptions.h>
00047 
00048 namespace MipTasks{
00050  /* @{ */
00051 
00055  enum PursuingStates{
00056   PUR_STA_EXPAND, 
00057  PUR_STA_FRONT_GUARD, 
00058  PUR_STA_FOLLOW, 
00059  PUR_STA_WANDER, 
00060  PUR_STA_NUM
00061  };
00062  
00063  
00065  static const char* pursuingStatesNames[PUR_STA_NUM] = {
00066   "Pursuit state Expand",
00067  "Pursuit state Frontier guard",
00068  "Pursuit state Follow",
00069  "Pursuit state Wander"
00070  };
00071  
00072  
00073  
00077  enum PursuingGuardUpdatingStates{
00078   PUR_STA_FRONT_GUARD_UPDATING_FREE,
00079  PUR_STA_FRONT_GUARD_UPDATING_WAITING,
00080  PURSUING_GUARD_UPDATING_NUM
00081  };
00082  
00083  
00084  static const char* pursuingGuardUpdatingStatesNames[PURSUING_GUARD_UPDATING_NUM] = {
00085   "Pursuing Frontier Guard Updating Free",
00086  "Pursuing Frontier Guard Updating Waiting for frontier",
00087  };
00088  
00089  
00090  
00094  enum PursuingGuardStates{
00095   PUR_STA_FRONT_GUARD_UPDATING,
00096  PUR_STA_FRONT_GUARD_SEND_FOLLOWER,
00097  PUR_STA_FRONT_GUARD_PLANNING,
00098  PUR_STA_FRONT_GUARD_NUM
00099  };
00100  
00101  
00102  static const char* pursuingGuardStatesNames[PUR_STA_FRONT_GUARD_NUM] = {
00103   "Pursuing Guard Updating",
00104  "Pursuing Guard Updating Sending Follower",
00105  "Pursuing Guard Planning"
00106  };
00107  
00108  
00109  
00113  enum PursuingWandererStates{
00114   PUR_STA_WANDER_FREE,
00115  PUR_STA_WANDER_WAITING,
00116  PUR_STA_WANDER_NUM
00117  };
00118  
00119  
00120  static const char* pursuingWanderStatesNames[PUR_STA_WANDER_NUM] = {
00121   "Pursuing Wanderer Free",
00122  "Pursuing Wanderer Waiting For Leader response"
00123  };
00124  
00125  
00126  
00130  enum GuardUpdatingState{
00131   PUR_GUARD_UPDATING_STA_TODO,
00132  PUR_GUARD_UPDATING_STA_SENT_REQUEST,
00133  PUR_GUARD_UPDATING_STA_RECEIVED_VALID_REQUEST,
00134  PUR_GUARD_UPDATING_STA_DONE_UPDATING,
00135  PUR_GUARD_UPDATING_STA_NUM
00136  };
00137  
00138  
00139  static const char* GuardUpdatingStateNames[PUR_GUARD_UPDATING_STA_NUM] = {
00140   "Pursuing Neighbouring Guard Todo",
00141  "Pursuing Neighbouring Guard Sent Request",
00142  "Pursuing Neighbouring Guard Received Valid Request",
00143  "Pursuing Neighbouring Guard Done Updating"
00144  };
00145  
00146  /* @} */
00147  
00148 };// end namespace MipTasks 
00149 
00150 
00151 #endif
00152 
00153 
00154 
00155 
00156 

Generated on Mon Feb 20 07:01:08 2017 for MIP by  doxygen 1.5.6