def __init__(self, device, etree1, etree2,<EOL>preferred_create='<STR_LIT>',<EOL>preferred_replace='<STR_LIT>',<EOL>preferred_delete='<STR_LIT>'):
BaseCalculator.__init__(self, device, etree1, etree2)<EOL>if preferred_create in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT:replace>']:<EOL><INDENT>self.preferred_create = preferred_create<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>""<STR_LIT>")<EOL><DEDENT>if preferred_replace in ['<STR_LIT>', '<STR_LIT:replace>']:<EOL><INDENT>self.preferred_replace = preferred_replace<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>""<STR_LIT>")<EOL><DEDENT>if preferred_delete in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self.preferred_delete = preferred_delete<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>""<STR_LIT>")<EOL><DEDENT>
__init__ instantiates a NetconfCalculator instance.