 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Go to the documentation of this file.
51 unsigned event_type,
const void *event_content,
unsigned event_size);
53 extern void SetState(
void *new_state);
55 extern double Random(
void);
56 extern uint64_t RandomU64(
void);
57 extern double Expent(
double mean);
58 extern double Normal(
void);
89 extern __attribute__ ((pure))
lp_id_t RegionsCount(
void);
90 extern __attribute__ ((pure))
lp_id_t DirectionsCount(
void);
92 extern lp_id_t FindReceiver(
void);
__attribute((weak))
this is used to store the common characteristics of the topology
double simtime_t
The type used to represent logical time in the simulation.
@ DIRECTION_NE
North-east direction.
const char * arg
The argument name for this option, shown in the --usage text.
@ DIRECTION_NW
North-west direction.
A single parsable command line option.
@ TOPOLOGY_SQUARE
square grid topology
@ DIRECTION_INVALID
A generic invalid direction.
lp_id_t out_of_topology
The minimum number of LPs needed for out of the topology logic.
@ TOPOLOGY_MESH
an arbitrary shaped topology
@ TOPOLOGY_STAR
a star shaped topology
@ DIRECTION_SW
South-west direction.
@ AP_KEY_INIT
Signals the start of the parsing process.
const char * doc
The documentation of this option, shown in the --help text.
@ DIRECTION_E
East direction.
int key
The key passed to the parsing function when encountering this option.
@ AP_KEY_FINI
Signals the end of the parsing process.
double Expent(double mean)
lp_id_t n_lps
The total number of LPs in the simulation.
@ DIRECTION_S
South direction.
@ TOPOLOGY_TORUS
a torus shaped grid topology (a wrapping around square topology)
@ DIRECTION_W
West direction.
@ TOPOLOGY_BIDRING
a ring shaped topology
@ DIRECTION_N
North direction.
ap_event_key
The special events keys passed to command line parsing functions.
uint64_t lp_id_t
Used to uniquely identify LPs in the simulation.
const char * name
The long option name.
@ TOPOLOGY_RING
a ring shaped topology walkable in a single direction
enum _topology_geometry_t default_geometry
The default geometry to use when nothing else is specified.
@ TOPOLOGY_HEXAGON
hexagonal grid topology
@ DIRECTION_SE
South-east direction.
This is declared by the model to setup the topology module.