<s> from openmdao . main . api import Component <EOL> from openmdao . main . datatypes . api import Float <EOL> class MyComponent ( Component ) : <EOL> """<STR_LIT>""" <EOL> x = Float ( <NUM_LIT:0.0> , iotype = '<STR_LIT>' , desc = '<STR_LIT>' ) <EOL> y = Float ( <NUM_LIT:0.0> , iotype = '<STR_LIT>' , desc = '<STR_LIT>' ) <EOL> def execute ( self ) : <EOL> """<STR_LIT>""" <EOL> self . y = self . x + <NUM_LIT:1.0> </s>
