11 #include <lib/jsmn_helper.h> 26 void topology_init(
void);
29 void UncheckedScheduleNewEvent(
unsigned int gid_receiver,
simtime_t timestamp,
unsigned int event_type,
void *event_content,
unsigned int event_size);
32 void ProcessEventTopology(
void);
35 unsigned size_checkpoint_probabilities (
void);
36 unsigned size_checkpoint_costs (
void);
37 unsigned size_checkpoint_obstacles (
void);
39 void * load_topology_file_probabilities(
c_jsmntok_t *root_token,
const char *json_base);
40 void * load_topology_file_costs (
c_jsmntok_t *root_token,
const char *json_base);
41 void * load_topology_file_obstacles (
c_jsmntok_t *root_token,
const char *json_base);
43 topology_t * topology_probabilities_init (
unsigned this_region_id,
void *topology_data);
44 topology_t * topology_costs_init (
unsigned this_region_id,
void *topology_data);
45 topology_t * topology_obstacles_init (
unsigned this_region_id,
void *topology_data);
47 double get_value_topology_probabilities(
unsigned from,
unsigned to);
48 double get_value_topology_costs (
unsigned from,
unsigned to);
49 double get_value_topology_obstacles (
unsigned from,
unsigned to);
51 void set_value_topology_probabilities(
unsigned from,
unsigned to,
double value);
52 void set_value_topology_costs (
unsigned from,
unsigned to,
double value);
53 void set_value_topology_obstacles (
unsigned from,
unsigned to,
double value);
55 bool is_reachable_probabilities (
unsigned to);
56 bool is_reachable_costs (
unsigned to);
57 bool is_reachable_obstacles (
unsigned to);
59 void update_topology_probabilities (
void);
60 void update_topology_costs (
void);
61 void update_topology_obstacles (
void);
63 unsigned int find_receiver_probabilities (
void);
64 unsigned int find_receiver_obstacles (
void);
66 double compute_min_tour_costs (
unsigned int source,
unsigned int dest,
unsigned int result[RegionsCount()]);
67 double compute_min_tour_obstacles (
unsigned int source,
unsigned int dest,
unsigned int result[RegionsCount()]);
69 unsigned int find_receiver_toward_costs (
unsigned int to);
70 unsigned int find_receiver_toward_obstacles (
unsigned int to);
73 unsigned int get_raw_receiver (
unsigned int from,
direction_t direction);
77 unsigned build_path(
unsigned lp_cnt,
unsigned result[lp_cnt],
const unsigned int previous[lp_cnt],
unsigned source,
unsigned dest);
enum _topology_geometry_t geometry
double simtime_t
This defines the type with whom timestamps are represented.
enum _direction_t direction_t
this is used to store the common characteristics of the topology
the customised struct for TOPOLOGY_OBSTACLES representation