00001
00002
00003
00004 #ifndef _FAULT_CHECK_H
00005 #define _FAULT_CHECK_H
00006
00007 #include "powerflow.h"
00008
00009 typedef enum {
00010 SINGLE=0,
00011 ONCHANGE=1,
00012 ALLT=2
00013 } FCSTATE;
00014
00015 class fault_check : public powerflow_object
00016 {
00017 public:
00018 static CLASS *oclass;
00019 static CLASS *pclass;
00020 public:
00021 int **Supported_Nodes;
00022
00023 FCSTATE fcheck_state;
00024 char1024 output_filename;
00025
00026 fault_check(MODULE *mod);
00027 fault_check(CLASS *cl=oclass):powerflow_object(cl){};
00028 int create(void);
00029 int init(OBJECT *parent=NULL);
00030 int isa(char *classname);
00031 void search_links(unsigned int node_int);
00032 void support_check(unsigned int swing_node_int, bool rest_pop_tree);
00033 void reset_support_check(void);
00034 void write_output_file(TIMESTAMP tval);
00035
00036 TIMESTAMP sync(TIMESTAMP t0);
00037
00038
00039 private:
00040 TIMESTAMP prev_time;
00041 };
00042
00043 #endif // _FAULT_CHECK_H