00001
00002
00003
00004 #ifndef _SUBSTATION_H
00005 #define _SUBSTATION_H
00006
00007 #include "powerflow.h"
00008 #include "node.h"
00009
00010 class substation : public node
00011 {
00012 protected:
00013 TIMESTAMP last_t;
00014
00015 public:
00016 complex distribution_voltage[3];
00017 complex distribution_current[3];
00018 double distribution_energy;
00019 complex distribution_power;
00020 double distribution_demand;
00021 double Network_Node_Base_Power;
00022 double Network_Node_Base_Voltage;
00023
00024 public:
00025 static CLASS *oclass;
00026 static CLASS *pclass;
00027 public:
00028 substation(MODULE *mod);
00029 inline substation(CLASS *cl=oclass):node(cl){};
00030 int create(void);
00031 int init(OBJECT *parent);
00032 TIMESTAMP presync(TIMESTAMP t0, TIMESTAMP t1);
00033 TIMESTAMP postsync(TIMESTAMP t0, TIMESTAMP t1);
00034 int isa(char *classname);
00035 };
00036
00037 #endif // _SUBSTATION_H
00038