intercode.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include "../calypso_util.h"
  2. #ifndef INTERCODE_STRUCTURES_H
  3. #define INTERCODE_STRUCTURES_H
  4. CalypsoApp* get_intercode_structure_env_holder();
  5. CalypsoApp* get_intercode_structure_contract();
  6. CalypsoApp* get_intercode_structure_event();
  7. CalypsoApp* get_intercode_structure_counter();
  8. const char* get_intercode_string_transition_type(int transition);
  9. const char* get_intercode_string_event_result(int result);
  10. typedef enum {
  11. URBAN_BUS = 1,
  12. INTERURBAN_BUS = 2,
  13. METRO = 3,
  14. TRAM = 4,
  15. COMMUTER_TRAIN = 5,
  16. WATERBORNE_VEHICLE = 6,
  17. TOLL = 7,
  18. PARKING = 8,
  19. TAXI = 9,
  20. HIGH_SPEED_TRAIN = 10,
  21. RURAL_BUS = 11,
  22. EXPRESS_COMMUTER_TRAIN = 12,
  23. PARA_TRANSIT = 13,
  24. SELF_DRIVE_VEHICLE = 14,
  25. COACH = 15,
  26. LOCOMOTIVE = 16,
  27. POWERED_MOTOR_VEHICLE = 17,
  28. TRAILER = 18,
  29. REGIONAL_TRAIN = 19,
  30. INTER_CITY = 20,
  31. FUNICULAR = 21,
  32. CABLE_CAR = 22,
  33. SELF_SERVICE_BICYCLE = 23,
  34. CAR_SHARING = 24,
  35. CAR_POOLING = 25,
  36. } INTERCODE_TRANSPORT_TYPE;
  37. typedef enum {
  38. ENTRY = 1,
  39. EXIT = 2,
  40. PASSAGE = 3,
  41. CHECKPOINT_INSPECTION = 4,
  42. AUTONOMOUS = 5,
  43. INTERCHANGE = 6,
  44. VALIDATION = 7,
  45. PRESENCE_DETECTED = 8,
  46. } INTERCODE_USER_ACTION;
  47. #endif // INTERCODE_STRUCTURES_H