00001
00007 #ifndef RECLOSER_H
00008 #define RECLOSER_H
00009
00010 #include "powerflow.h"
00011 #include "switch_object.h"
00012
00013 class recloser : public switch_object
00014 {
00015 public:
00016 static CLASS *oclass;
00017 static CLASS *pclass;
00018
00019 public:
00020 int create(void);
00021 int init(OBJECT *parent);
00022 recloser(MODULE *mod);
00023 inline recloser(CLASS *cl=oclass):switch_object(cl){};
00024 int isa(char *classname);
00025 TIMESTAMP sync(TIMESTAMP t0);
00026
00027 double retry_time;
00028 double ntries;
00029 double curr_tries;
00030 int64 return_time;
00031
00032 private:
00033 TIMESTAMP prev_rec_time;
00034 };
00035
00036 EXPORT double change_recloser_state(OBJECT *thisobj, unsigned char phase_change, bool state);
00037 EXPORT int recloser_reliability_operation(OBJECT *thisobj, unsigned char desired_phases);
00038 EXPORT int recloser_fault_updates(OBJECT *thisobj, unsigned char restoration_phases);
00039
00040 #endif // RECLOSER_H
00041