residential/lights.h

Go to the documentation of this file.
00001 
00008 #ifndef _LIGHTS_H
00009 #define _LIGHTS_H
00010 
00011 #include "residential.h"
00012 
00013 class lights  
00014 {
00015 private:
00016     complex *pVoltage;
00017 
00018 public:
00019     enum { // make certain this matchers the power_factor table
00020         INCANDESCENT,   
00021         FLUORESCENT,    
00022         CFL,            
00023         SSL,            
00024         HID,            
00025         _MAXTYPES
00026     } type;             
00027     static double power_factor[_MAXTYPES]; 
00028     enum {
00029         INDOOR=0,       
00030         OUTDOOR=1,      
00031     } placement;        
00032     double circuit_split;           
00033     double power_density;           
00034     double installed_power;         
00035     double demand;                  
00036     complex power_kw;               
00037     double kwh_meter;               
00038     double internal_heat;           
00039     double external_heat;           
00040 
00041 public:
00042     static CLASS *oclass;
00043     static lights *defaults;
00044     lights(MODULE *mod);
00045     int create(void);
00046     int init(OBJECT *parent);
00047     TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1);
00048 
00049 };
00050 
00051 #endif // _LIGHTS_H
00052 

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy