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