00001
00002
00003
00004 #ifndef _LOAD_H
00005 #define _LOAD_H
00006
00007 #include "node.h"
00008
00009 class load : public node
00010 {
00011 public:
00012 static CLASS *oclass;
00013 static CLASS *pclass;
00014 public:
00015 complex measured_voltage_A;
00016 complex measured_voltage_B;
00017 complex measured_voltage_C;
00018 complex measured_voltage_AB;
00019 complex measured_voltage_BC;
00020 complex measured_voltage_CA;
00021 complex constant_power[3];
00022 complex constant_current[3];
00023 complex constant_impedance[3];
00024 enum {LC_UNKNOWN=0, LC_RESIDENTIAL, LC_COMMERCIAL, LC_INDUSTRIAL, LC_AGRICULTURAL} load_class;
00025
00026 int create(void);
00027
00028 load(MODULE *mod);
00029 TIMESTAMP sync(TIMESTAMP t0);
00030 TIMESTAMP postsync(TIMESTAMP t0);
00031 TIMESTAMP presync(TIMESTAMP t0);
00032 inline load(CLASS *cl=oclass):node(cl){};
00033 int isa(char *classname);
00034 };
00035
00036 #endif // _LOAD_H
00037