00001 /*=========================================================================== 00002 NetEvo Foundation Library 00003 Copyright (C) 2009, 2010 Thomas E. Gorochowski <tgorochowski@me.com> 00004 Bristol Centre for Complexity Sciences, University of Bristol, Bristol, UK 00005 ---------------------------------------------------------------------------- 00006 NetEvo is a computing framework designed to allow researchers to investigate 00007 evolutionary aspects of dynamical complex networks. By providing tools to 00008 easily integrate each of these factors in a coherent way, it is hoped a 00009 greater understanding can be gained of key attributes and features displayed 00010 by complex systems. 00011 00012 NetEvo is open-source software released under the Open Source Initiative 00013 (OSI) approved Non-Profit Open Software License ("Non-Profit OSL") 3.0. 00014 Detailed information about this licence can be found in the COPYING file 00015 included as part of the source distribution. 00016 00017 This library is distributed in the hope that it will be useful, but 00018 WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 ============================================================================*/ 00030 #ifndef NE_SIM_H 00031 #define NE_SIM_H 00032 00033 00034 #include "ne_dyn_vec.h" 00035 #include "ne_sys.h" 00036 00038 #define ne_sim_node_state_index_m(s,n,i) ((n*s->nodeStates)+i) 00039 00040 #define ne_sim_eid_state_index_m(s,e,i) ((igraph_vcount(s->graph)*s->nodeStates)+(e*s->edgeStates)+i) 00041 00042 00047 typedef ne_dyn_vec_t * ne_sim_fn_t (ne_sys_t *sys, void *params, double *iy, FILE *file); 00048 00050 void ne_sim_fprint_array (double t, double *y, int size, FILE *file); 00052 void ne_sim_fprint_dyn_vec (ne_dyn_vec_t *dyn, FILE *file); 00053 00054 00055 #endif /* NE_SIM_H */