예제 #1
0
 def __init__(self):
     DevsAtomic.__init__(self)
     self.state = {
         'gdd':0,
     }
     self.name='Cumul ADEVS'
     self.add_input_port('gdd')
예제 #2
0
    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')
예제 #3
0
 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)
예제 #4
0
 def __init__(self):
     """Constructor.
     """
     DevsAtomic.__init__(self)