<s> import collections <EOL> import copy <EOL> from . Utils import _write_complex_object <EOL> from . DataPointType import DataPointType <EOL> from . DependencyKind import DependencyKind <EOL> from . DependencySourceType import DependencySourceType <EOL> class RemoteDependencyData ( object ) : <EOL> """<STR_LIT>""" <EOL> ENVELOPE_TYPE_NAME = '<STR_LIT>' <EOL> DATA_TYPE_NAME = '<STR_LIT>' <EOL> _defaults = collections . OrderedDict ( [ <EOL> ( '<STR_LIT>' , <NUM_LIT:2> ) , <EOL> ( '<STR_LIT:name>' , None ) , <EOL> ( '<STR_LIT>' , DataPointType . measurement ) , <EOL> ( '<STR_LIT:value>' , None ) , <EOL> ( '<STR_LIT:count>' , None ) , <EOL> ( '<STR_LIT>' , None ) , <EOL> ( '<STR_LIT>' , None ) , <EOL> ( '<STR_LIT>' , None ) , <EOL> ( '<STR_LIT>' , DependencyKind . undefined ) , <EOL> ( '<STR_LIT:success>' , True ) , <EOL> ( '<STR_LIT>' , None ) , <EOL> ( '<STR_LIT>' , DependencySourceType . undefined ) , <EOL> ( '<STR_LIT>' , { } ) <EOL> ] ) <EOL> def __init__ ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _values = { <EOL> '<STR_LIT>' : <NUM_LIT:2> , <EOL> '<STR_LIT:name>' : None , <EOL> '<STR_LIT>' : DataPointType . measurement , <EOL> '<STR_LIT:value>' : None , <EOL> '<STR_LIT>' : DependencyKind . undefined , <EOL> '<STR_LIT:success>' : True , <EOL> '<STR_LIT>' : DependencySourceType . undefined , <EOL> } <EOL> self . _initialize ( ) <EOL> @ property <EOL> def ver ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _values [ '<STR_LIT>' ] <EOL> @ ver . setter <EOL> def ver ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def name ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _values [ '<STR_LIT:name>' ] <EOL> @ name . setter <EOL> def name ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . _values [ '<STR_LIT:name>' ] = value <EOL> @ property <EOL> def kind ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ kind . setter <EOL> def kind ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def value ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _values [ '<STR_LIT:value>' ] <EOL> @ value . setter <EOL> def value ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . _values [ '<STR_LIT:value>' ] = value <EOL> @ property <EOL> def count ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT:count>' in self . _values : <EOL> return self . _values [ '<STR_LIT:count>' ] <EOL> return self . _defaults [ '<STR_LIT:count>' ] <EOL> @ count . setter <EOL> def count ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT:count>' ] and '<STR_LIT:count>' in self . _values : <EOL> del self . _values [ '<STR_LIT:count>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT:count>' ] = value <EOL> @ property <EOL> def min ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ min . setter <EOL> def min ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def max ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ max . setter <EOL> def max ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def std_dev ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ std_dev . setter <EOL> def std_dev ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def dependency_kind ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _values [ '<STR_LIT>' ] <EOL> @ dependency_kind . setter <EOL> def dependency_kind ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def success ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT:success>' in self . _values : <EOL> return self . _values [ '<STR_LIT:success>' ] <EOL> return self . _defaults [ '<STR_LIT:success>' ] <EOL> @ success . setter <EOL> def success ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT:success>' ] and '<STR_LIT:success>' in self . _values : <EOL> del self . _values [ '<STR_LIT:success>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT:success>' ] = value <EOL> @ property <EOL> def async ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ async . setter <EOL> def async ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def dependency_source ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> return self . _defaults [ '<STR_LIT>' ] <EOL> @ dependency_source . setter <EOL> def dependency_source ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> @ property <EOL> def properties ( self ) : <EOL> """<STR_LIT>""" <EOL> if '<STR_LIT>' in self . _values : <EOL> return self . _values [ '<STR_LIT>' ] <EOL> self . _values [ '<STR_LIT>' ] = copy . deepcopy ( self . _defaults [ '<STR_LIT>' ] ) <EOL> return self . _values [ '<STR_LIT>' ] <EOL> @ properties . setter <EOL> def properties ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value == self . _defaults [ '<STR_LIT>' ] and '<STR_LIT>' in self . _values : <EOL> del self . _values [ '<STR_LIT>' ] <EOL> else : <EOL> self . _values [ '<STR_LIT>' ] = value <EOL> def _initialize ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def write ( self ) : <EOL> """<STR_LIT>""" <EOL> return _write_complex_object ( self . _defaults , self . _values ) </s>
