/[ascend]/trunk/base/generic/system/graph.h
ViewVC logotype

Contents of /trunk/base/generic/system/graph.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1347 - (show annotations) (download) (as text)
Tue Mar 13 06:40:06 2007 UTC (13 years, 2 months ago) by jpye
File MIME type: text/x-chdr
File size: 1535 byte(s)
Added routine for outputting system as a DOT graph.
Changed an 'assert' to an 'asc_assert' in logrelation.c.
Changed logical relation in sequence.a4c (was causing a crash).
Added Simulation::write(FILE,char*) for outputting *stuff* from a simulation.
1 /* ASCEND modelling environment
2 Copyright (C) 2007 Carnegie Mellon University
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
18 *//** @file
19 System graph output
20
21 Use variable and relation filters to generate a graph between the selected
22 vars and rels, by querying their incidence data. Write the graph in DOT
23 format to the provided FILE*.
24
25 by John Pye, March 2007
26 */
27 #ifndef ASC_SYS_GRAPH_H
28 #define ASC_SYS_GRAPH_H
29
30 #include <utilities/config.h>
31 #include <utilities/ascConfig.h>
32 #include "slv_types.h"
33 #include "var.h"
34 #include "rel.h"
35
36 /**
37 Write graphviz output for the graph connecting the filter-selected relations
38 and variables. The idea is that this graph should be creatable even before
39 a solver has been selected, which is why it's prefixed with 'system_'.
40 */
41 ASC_DLLSPEC int system_write_graph(slv_system_t sys
42 , FILE *fp
43 , const rel_filter_t *rfilter, const var_filter_t *vfilter
44 );
45
46 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22