1 |
/* |
2 |
* BrowserDag.h |
3 |
* by Kirk Abbott and Ben Allan |
4 |
* Created: 1/94 |
5 |
* Version: $Revision: 1.5 $ |
6 |
* Version control file: $RCSfile: BrowserDag.h,v $ |
7 |
* Date last modified: $Date: 1997/07/18 12:22:08 $ |
8 |
* Last modified by: $Author: mthomas $ |
9 |
* |
10 |
* This file is part of the ASCEND Tcl/Tk interface |
11 |
* |
12 |
* Copyright 1997, Carnegie Mellon University |
13 |
* |
14 |
* The ASCEND Tcl/Tk interface is free software; you can redistribute |
15 |
* it and/or modify it under the terms of the GNU General Public License as |
16 |
* published by the Free Software Foundation; either version 2 of the |
17 |
* License, or (at your option) any later version. |
18 |
* |
19 |
* The ASCEND Tcl/Tk interface is distributed in hope that it will be |
20 |
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
22 |
* General Public License for more details. |
23 |
* |
24 |
* You should have received a copy of the GNU General Public License |
25 |
* along with the program; if not, write to the Free Software Foundation, |
26 |
* Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check the file named |
27 |
* COPYING. COPYING is found in ../compiler. |
28 |
*/ |
29 |
|
30 |
/** @file |
31 |
* Browser Dag Routines |
32 |
* <pre> |
33 |
* To include this header, you must include the following: |
34 |
* #include "tcl.h" |
35 |
* #include "utilities/ascConfig.h" |
36 |
* #include "interface/BrowserDag.h" |
37 |
* </pre> |
38 |
* @todo Fix comments in interface/BrowserDag.h |
39 |
*/ |
40 |
|
41 |
#ifndef ASCTK_BROWSERDAG_H |
42 |
#define ASCTK_BROWSERDAG_H |
43 |
|
44 |
extern int Asc_BrowTreeListCmd(ClientData cdata, Tcl_Interp *interp, |
45 |
int argc, char *argv[]); |
46 |
/* |
47 |
* Usage : __brow_tree_list ?cur?search? |
48 |
* Returns a formatted string of the form: |
49 |
* {instancename {child1_name child2_name}} for the entire instance |
50 |
* tree rooted from the current or the search instance. This is the |
51 |
* primitive used to build the DAG Browser. |
52 |
*/ |
53 |
|
54 |
extern int Asc_DagWriteInstDagCmd(ClientData cdata, Tcl_Interp *interp, |
55 |
int argc, char *argv[]); |
56 |
|
57 |
extern int Asc_DagWriteModelDagCmd(ClientData cdata, Tcl_Interp *interp, |
58 |
int argc, char *argv[]); |
59 |
|
60 |
extern int Asc_DagCouplingRelnsCmd(ClientData cdata, Tcl_Interp *interp, |
61 |
int argc, char *argv[]); |
62 |
|
63 |
/* |
64 |
* This writes a file with a model - relation attr pair. |
65 |
* The first thing in the file is the n_models and n_relations. |
66 |
* It is written to a named file. |
67 |
*/ |
68 |
extern int Asc_DagModelRelnsCmd(ClientData cdata, Tcl_Interp *interp, |
69 |
int argc, char *argv[]); |
70 |
|
71 |
extern int Asc_DagPartitionCmd(ClientData cdata, Tcl_Interp *interp, |
72 |
int argc, char *argv[]); |
73 |
|
74 |
extern int Asc_DagCountRelnsCmd(ClientData cdata, Tcl_Interp *interp, |
75 |
int argc, char *argv[]); |
76 |
|
77 |
extern int Asc_DagBuildDagCmd(ClientData cdata, Tcl_Interp *interp, |
78 |
int argc, char *argv[]); |
79 |
|
80 |
extern int Asc_DagPrepareCmd(ClientData cdata, Tcl_Interp *interp, |
81 |
int argc, char *argv[]); |
82 |
|
83 |
extern int Asc_DagShutdownCmd(ClientData cdata, Tcl_Interp *interp, |
84 |
int argc, char *argv[]); |
85 |
|
86 |
|
87 |
|
88 |
extern int Asc_BrowTreeListCmd2(ClientData cdata, Tcl_Interp *interp, |
89 |
int argc, char *argv[]); |
90 |
/* |
91 |
* FIX THESE COMMENTS KAA_DEBUG |
92 |
*/ |
93 |
/* |
94 |
* Usage : __brow_tree_list2 ?cur?search? |
95 |
* Returns a formatted string of the form: |
96 |
* { {parentindex childndx1 childndx2} {parentndx childndx1 childndx2} ... } |
97 |
* for the entire instance tree rooted from the current or the search |
98 |
* instance. This is one of the primitives used to build the DAG Browser. |
99 |
* NOTE: At this time the following is done: |
100 |
* 1) Only models or arrays of models are returned. |
101 |
* 2) Leaf models are not returned. |
102 |
* 3) The instance tree is left in the state that it was found. |
103 |
*/ |
104 |
|
105 |
#endif /* ASCTK_BROWSERDAG_H */ |
106 |
|