def __init__(self): DevsAtomic.__init__(self) self.state = { 'gdd':0, } self.name='Cumul ADEVS' self.add_input_port('gdd')
def __init__(self, tbase): DevsAtomic.__init__(self) self.name='gdd' self.state = { 'm_state':'ini', 'gdd':0, 'tbase':tbase, 'temperatures':[], } self.ta_state = { 'ini': 1, 'aggregate': 0 } self.name='GDD ADEVS' self.add_input_port('temperature') self.add_output_port('gdd')
def __init__(self, input_file, var_name): DevsAtomic.__init__(self) self.input = self.read_file_generator(input_file) self.state = {key: "INI" for key in var_name} self.declare_output_port(var_name)
def __init__(self): """Constructor. """ DevsAtomic.__init__(self)