00001
00009 #ifndef _RESIDENTIALENDUSE_H
00010 #define _RESIDENTIALENDUSE_H
00011
00012 #include "residential.h"
00013
00014 typedef enum {
00015 OV_ON = 1,
00016 OV_NORMAL = 0,
00017 OV_OFF = -1,
00018 } OVERRIDE;
00019
00020 typedef enum {
00021 PS_UNKNOWN=-1,
00022 PS_OFF=0,
00023 PS_ON=1
00024 } POWERSTATE;
00025
00026 class residential_enduse
00027 {
00028 public:
00029 CIRCUIT *pCircuit;
00030 enduse load;
00031 loadshape shape;
00032 OVERRIDE override;
00033 POWERSTATE power_state;
00034 public:
00035 static CLASS *oclass;
00036 residential_enduse(MODULE *mod);
00037 int create(bool connect_shape=true);
00038 int init(OBJECT *parent);
00039 int isa(char *classname);
00040 TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1);
00041
00042 };
00043
00044 #endif // _RESIDENTIALENDUSE_H
00045