00001 // meter.h 00002 00003 #ifndef _METER_H 00004 #define _METER_H 00005 00006 class meter { 00007 private: 00008 00009 protected: 00010 00011 public: 00012 00013 complex v12; // voltage on 1-2 (~110V) 00014 complex v23; // voltage on 2-3 (~110V) 00015 complex v13; // voltage on 1-3 (~220V) 00016 complex i1, i2, i3; // currents on lines 1, 2 and 3 00017 00018 meter(void); 00019 ~meter(void); 00020 00021 int create(void); 00022 int init(OBJECT *parent); 00023 TIMESTAMP sync(TIMESTAMP t0); 00024 }; 00025 00026 #endif