![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
ROOT-Sim header for model development. More...
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | ap_option |
A single parsable command line option. More... | |
struct | topology_settings_t |
This is declared by the model to setup the topology module. More... | |
Typedefs | |
typedef double | simtime_t |
typedef uint64_t | lp_id_t |
Enumerations | |
enum | rootsim_event { MODEL_INIT = 65532, LP_INIT, LP_FINI, MODEL_FINI, MODEL_INIT = 65532, LP_INIT, LP_FINI, MODEL_FINI } |
enum | ap_event_key { AP_KEY_INIT = 1 << 14, AP_KEY_FINI, AP_KEY_INIT = 1 << 14, AP_KEY_FINI } |
enum | _topology_geometry_t { TOPOLOGY_HEXAGON = 1, TOPOLOGY_SQUARE, TOPOLOGY_RING, TOPOLOGY_BIDRING, TOPOLOGY_TORUS, TOPOLOGY_STAR, TOPOLOGY_MESH, TOPOLOGY_HEXAGON = 1, TOPOLOGY_SQUARE, TOPOLOGY_RING, TOPOLOGY_BIDRING, TOPOLOGY_TORUS, TOPOLOGY_STAR, TOPOLOGY_MESH } |
enum | _direction_t { DIRECTION_N, DIRECTION_S, DIRECTION_E, DIRECTION_W, DIRECTION_NE, DIRECTION_SW, DIRECTION_NW, DIRECTION_SE, DIRECTION_INVALID = INT_MAX, DIRECTION_N, DIRECTION_S, DIRECTION_E, DIRECTION_W, DIRECTION_NE, DIRECTION_SW, DIRECTION_NW, DIRECTION_SE, DIRECTION_INVALID = INT_MAX } |
Functions | |
__attribute ((weak)) extern struct ap_option model_options[] | |
void | ScheduleNewEvent (lp_id_t receiver, simtime_t timestamp, unsigned event_type, const void *event_content, unsigned event_size) |
void | SetState (void *new_state) |
double | Random (void) |
uint64_t | RandomU64 (void) |
double | Expent (double mean) |
double | Normal (void) |
lp_id_t | RegionsCount (void) |
lp_id_t | DirectionsCount (void) |
lp_id_t | GetReceiver (lp_id_t from, enum _direction_t direction) |
lp_id_t | FindReceiver (void) |
Variables | |
const char * | arg |
lp_id_t | n_lps |
The total number of LPs in the simulation. | |
struct topology_settings_t | topology_settings |
ROOT-Sim header for model development.
This header defines all the symbols which are needed to develop a model to be simulated on top of ROOT-Sim.
This header is the only file which should be included when developing a simulation model. All function prototypes exposed to the application developer are exposed and defined here.
Definition in file ROOT-Sim.h.
enum _direction_t |
Definition at line 70 of file ROOT-Sim.h.
enum _topology_geometry_t |
Definition at line 60 of file ROOT-Sim.h.
enum ap_event_key |
Enumerator | |
---|---|
AP_KEY_INIT | Signals the start of the parsing process. |
AP_KEY_FINI | Signals the end of the parsing process. |
Definition at line 40 of file ROOT-Sim.h.
double Expent | ( | double | mean | ) |