def __init__(self, xml_file, properties, debug): """ Constructor which provides STIX file from which signatures will be produced. Arguments: xml_file - STIX compliant XML file. properties - An EnvProperties object which contains information coming from a properties file. debug -Boolean, true if debug is on. """ self.properties = {} for property_name in properties.propertyNames(): self.properties[property_name] = properties.getProperty( property_name) self.cppAsgEngine = AsgEngine(self.properties, debug) self.detectorEvent = DetectorEvent(xml_file) self.debug = debug