-
Notifications
You must be signed in to change notification settings - Fork 15
data.py
rubae edited this page Oct 1, 2013
·
1 revision
A Applicane class, Drawoff class and StateSpace class are defined which only serve to read, write and store input data for the simulation of household behaviour:
class Appliance(object):
__init__(self, name, cycle_n, cycle_length, cycle_power, standby_power, cal, owner, consumption, delay,
activity, frad, fconv, filename):
class Drawoff(object):
__init__(self, name, cycle_n, cycle_length, cycle_flow, standby_flow, cal, activity, filename):
class StateSpace(object):
__init__(self, name, occ_n, prob_wd, prob_we, filename):
self.period = 86400
self.steps = 144
All __init__(self)
functions of these classes have the same structure:
if filename is None:
// all given attributes are copied to self._ and written to a file
else:
// the given file is read and all attributes are copied to self._