00001
00002
00003
00004 #ifndef _impedance_dump_H
00005 #define _impedance_dump_H
00006
00007 #include "powerflow.h"
00008 #include "line.h"
00009 #include "transformer.h"
00010 #include "node.h"
00011 #include "regulator.h"
00012 #include "capacitor.h"
00013 #include "switch_object.h"
00014
00015 typedef enum {
00016 IDM_RECT,
00017 IDM_POLAR
00018 } IDMODE;
00019
00020 class impedance_dump : public gld_object
00021 {
00022 public:
00023 int first_run;
00024 char32 group;
00025 char256 filename;
00026 link_object **pFuse;
00027 line **pOhLine;
00028 link_object **pRecloser;
00029 regulator **pRegulator;
00030 link_object **pRelay;
00031 link_object **pSectionalizer;
00032 link_object **pSeriesReactor;
00033 switch_object **pSwitch;
00034 transformer **pTransformer;
00035 line **pTpLine;
00036 line **pUgLine;
00037 capacitor **pCapacitor;
00038 TIMESTAMP runtime;
00039 int32 runcount;
00040 complex *node_voltage;
00041 public:
00042 static CLASS *oclass;
00043 public:
00044 impedance_dump(MODULE *mod);
00045 int create(void);
00046 int init(OBJECT *parent);
00047 TIMESTAMP commit(TIMESTAMP t);
00048 int isa(char *classname);
00049 int dump(TIMESTAMP t);
00050 complex *get_complex(OBJECT *obj, char *name);
00051 };
00052
00053 #endif // _impedance_dump_H
00054