network/regulator.h

00001 // regulator.h
00002 
00003 #ifndef _REGULATOR_H
00004 #define _REGULATOR_H
00005 
00006 #include "link.h"
00007 
00008 class regulator : public link {
00009 public:
00010     enum {RT_LTC, RT_VR} Type;
00011     double Vmax;
00012     double Vmin;
00013     double Vstep;
00014     OBJECT* CTlink;
00015     OBJECT* PTbus;
00016     double TimeDelay;   
00017 public:
00018     static CLASS *oclass;
00019     static regulator *defaults;
00020     static CLASS *pclass;
00021 public:
00022     regulator(MODULE *mod);
00023     int create();
00024     TIMESTAMP sync(TIMESTAMP t0);
00025 };
00026 
00027 GLOBAL CLASS *regulator_class INIT(NULL);
00028 
00029 #endif

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy