Building Controls Virtual Test Bed
bcvtb.h
Go to the documentation of this file.
1 #ifndef _BCVTB_MODELICA_H_
32 #define _BCVTB_MODELICA_H_
33 
34 #include <stddef.h>
35 
43 int establishModelicaClient(const char *const docname);
44 
69  int flaWri, int *flaRea,
70  double simTimWri,
71  double* dblValWri, size_t nDblWri,
72  double* simTimRea,
73  double* dblValRea, size_t nDblRea);
80 
81 #endif /* _BCVTB_MODELICA_H_ */
82 
83 /*
84 ********************************************************************
85 Copyright Notice
86 ----------------
87 
88 Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
89 Regents of the University of California, through Lawrence Berkeley
90 National Laboratory (subject to receipt of any required approvals from
91 the U.S. Dept. of Energy). All rights reserved.
92 
93 If you have questions about your rights to use or distribute this
94 software, please contact Berkeley Lab's Technology Transfer Department
95 at TTD@lbl.gov
96 
97 NOTICE. This software was developed under partial funding from the U.S.
98 Department of Energy. As such, the U.S. Government has been granted for
99 itself and others acting on its behalf a paid-up, nonexclusive,
100 irrevocable, worldwide license in the Software to reproduce, prepare
101 derivative works, and perform publicly and display publicly. Beginning
102 five (5) years after the date permission to assert copyright is obtained
103 from the U.S. Department of Energy, and subject to any subsequent five
104 (5) year renewals, the U.S. Government is granted for itself and others
105 acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide
106 license in the Software to reproduce, prepare derivative works,
107 distribute copies to the public, perform publicly and display publicly,
108 and to permit others to do so.
109 
110 
111 Modified BSD License agreement
112 ------------------------------
113 
114 Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
115 Regents of the University of California, through Lawrence Berkeley
116 National Laboratory (subject to receipt of any required approvals from
117 the U.S. Dept. of Energy). All rights reserved.
118 
119 Redistribution and use in source and binary forms, with or without
120 modification, are permitted provided that the following conditions are met:
121 
122  1. Redistributions of source code must retain the above copyright
123  notice, this list of conditions and the following disclaimer.
124  2. Redistributions in binary form must reproduce the above copyright
125  notice, this list of conditions and the following disclaimer in
126  the documentation and/or other materials provided with the
127  distribution.
128  3. Neither the name of the University of California, Lawrence
129  Berkeley National Laboratory, U.S. Dept. of Energy nor the names
130  of its contributors may be used to endorse or promote products
131  derived from this software without specific prior written permission.
132 
133 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
134 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
135 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
136 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
137 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
138 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
139 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
140 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
141 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
142 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
143 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
144 
145 You are under no obligation whatsoever to provide any bug fixes,
146 patches, or upgrades to the features, functionality or performance of
147 the source code ("Enhancements") to anyone; however, if you choose to
148 make your Enhancements available either publicly, or directly to
149 Lawrence Berkeley National Laboratory, without imposing a separate
150 written license agreement for such Enhancements, then you hereby grant
151 the following license: a non-exclusive, royalty-free perpetual license
152 to install, use, modify, prepare derivative works, incorporate into
153 other computer software, distribute, and sublicense such enhancements or
154 derivative works thereof, in binary and source code form.
155 
156 ********************************************************************
157 */
function sockfd
int exchangeModelicaClient(int sockfd, int flaWri, int *flaRea, double simTimWri, double *dblValWri, size_t nDblWri, double *simTimRea, double *dblValRea, size_t nDblRea)
Exchanges data with the socket.
Definition: bcvtb.c:8
int closeModelicaClient(int sockfd)
Closes the inter process communication socket.
Definition: bcvtb.c:24
end Get return values from pointers flaRea
int establishModelicaClient(const char *const docname)
Establishes a connection to the socket.
Definition: bcvtb.c:3