00001 00009 #ifndef _diesel_dg_H 00010 #define _diesel_dg_H 00011 00012 #include <stdarg.h> 00013 #include "gridlabd.h" 00014 00015 class diesel_dg { 00016 private: 00017 /* TODO: put private variables here */ 00018 protected: 00019 /* TODO: put unpublished but inherited variables */ 00020 public: 00021 /* TODO: put published variables here */ 00022 public: 00023 /* required implementations */ 00024 diesel_dg(MODULE *module); 00025 int create(void); 00026 int init(OBJECT *parent); 00027 TIMESTAMP presync(TIMESTAMP t0, TIMESTAMP t1); 00028 TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1); 00029 TIMESTAMP postsync(TIMESTAMP t0, TIMESTAMP t1); 00030 public: 00031 static CLASS *oclass; 00032 static diesel_dg *defaults; 00033 #ifdef OPTIONAL 00034 static CLASS *pclass; 00035 TIMESTAMPP plc(TIMESTAMP t0, TIMESTAMP t1); 00036 #endif 00037 }; 00038 00039 #endif 00040