3 /* Copyright (c) 2007 Arnaud Legrand, Bruno Donnassolo.
4 All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #ifndef SIMIX_DATATYPE_H
10 #define SIMIX_DATATYPE_H
17 /* ******************************** Host ************************************ */
18 /** @defgroup m_datatypes_management_details Details on SIMIX datatypes */
19 /** @brief Host datatype
20 @ingroup m_datatypes_management
22 A <em>location</em> (or <em>host</em>) is any possible place where
23 a process may run. Thus it is represented as a <em>physical
24 resource with computing capabilities</em>, some <em>mailboxes</em>
25 to enable running process to communicate with remote ones, and
26 some <em>private data</em> that can be only accessed by local
29 \see m_host_management
31 typedef struct s_smx_host *smx_host_t;
35 /* ******************************** Syncro ************************************ */
36 typedef struct s_smx_mutex *smx_mutex_t;
37 typedef struct s_smx_cond *smx_cond_t;
39 /********************************** Action *************************************/
40 typedef struct s_smx_action *smx_action_t;
42 /* ****************************** Process *********************************** */
43 /** @brief Agent datatype
44 @ingroup m_datatypes_management
46 An agent may be defined as a <em>code</em>, with some <em>private
47 data</em>, executing in a <em>location</em>.
48 \see m_process_management
50 typedef struct s_smx_process *smx_process_t;
53 typedef struct s_smx_context *smx_context_t;
55 /******************************* Networking ***********************************/
56 typedef struct s_smx_rvpoint *smx_rdv_t;
57 typedef struct s_smx_comm *smx_comm_t;