There are two kinds of players and two kinds of recorders:
player is used to play a recording of a single value to property of an objectshaper is used to play a periodic scaled shape to a property of groups of objectsrecorder is used to collect a recording of one of more properties of an objectcollector is used to collect an aggregation of a property from a group of objects
Modules | |
| Collectors | |
| Tape collectors are different from recorders in that they aggregate multiple object properties into a single value. | |
| Players | |
Tape players use the following properties
| |
| Recorders | |
Tape recorders use the following additional properties
| |
| Shapers | |
| Shapers produce boundary conditions based on a shape, either by playing a scaled result that conforms to the defined shape, or producing a series of pulse-width modulated events of a set amplitude that aggregate over time to the given shape. | |
| File-based tapes | |
| Tape Files read or write comma-seperated values in a flat file on the local computer. | |
| Memory Tapes | |
| The Memory tape type was originally created to provide a work buffer for Matlab in memory space that GridLAB-D could access. | |
| ODBC Tapes | |
| ODBC-type tapes work on databases. | |
Defines | |
| #define | _STR(x) #x |
| #define | _TAPE_C |
| #define | DLLOAD(P) dlopen(P,RTLD_LAZY) |
| #define | DLSYM(H, S) dlsym(H,S) |
| #define | LIBEXT .so |
| #define | LIBPREFIX "lib" |
| #define | MAP_DOUBLE(X, LO, HI) {#X,VT_DOUBLE,&X,LO,HI} |
| #define | MAP_END {NULL} |
| #define | MAP_INTEGER(X, LO, HI) {#X,VT_INTEGER,&X,LO,HI} |
| #define | MAP_STRING(X) {#X,VT_STRING,X,sizeof(X),0} |
| #define | STR(x) _STR(x) |
Typedefs | |
| typedef void(*) | CLOSEFUNC (void *) |
| typedef int(*) | OPENFUNC (void *, char *, char *) |
| typedef char *(*) | READFUNC (void *, char *, unsigned int) |
| typedef int(*) | REWINDFUNC (void *) |
| typedef int(*) | WRITEFUNC (void *, char *, char *) |
Functions | |
| EXPORT int | check (void) |
| int | do_kill () |
| TAPEFUNCS * | get_ftable (char *mode) |
| EXPORT CLASS * | init (CALLBACKS *fntable, void *module, int argc, char *argv[]) |
Variables | |
| CLASS * | collector_class |
| CLASS * | player_class |
| CLASS * | recorder_class |
| CLASS * | shaper_class |
| VARMAP | varmap [] |