network/relay.h

00001 // relay.h
00002 
00003 #ifndef _RELAY_H
00004 #define _RELAY_H
00005 
00006 #include "link.h"
00007 
00008 class relay : public link {
00009 public:
00010     enum {FC_U1=1,FC_U2=2,FC_U3=3,FC_U4=4,FC_U5=5} Curve;
00011     double TimeDial;
00012     double SetCurrent;
00013     enum {FS_CLOSED=1, FS_TRIPPED=2, FS_RECLOSED=3, FS_LOCKOUT=4, FS_FAULT=5} State;
00014 private:
00015     double Tp;
00016     double Tr;
00017     double Mp;
00018     double Mr;
00019     TIMESTAMP Tstate;
00020 public:
00021     static CLASS *oclass;
00022     static relay *defaults;
00023     static CLASS *pclass;
00024 public:
00025     relay(MODULE *mod);
00026     int create();
00027     TIMESTAMP sync(TIMESTAMP t0);
00028 };
00029 
00030 GLOBAL CLASS *relay_class INIT(NULL);
00031 
00032 #endif

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