Revision 2144 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasSummaryMacro.groovy

SchemasSummaryMacro.groovy (revision 2144)
43 43
		int minimum_schema_size
44 44
@Field @Option(name="maximum_schema_size", usage="Maximum size needed to consider a schema", widget="Integer", required=true, def="9999999")
45 45
		int maximum_schema_size
46
@Field @Option(name="strict_inclusion", usage="Units must be strictly included into corpus matches", widget="Boolean", required=true, def="true")
47
		boolean strict_inclusion
46 48
@Field @Option(name="debug", usage="Show internal variable content", widget="StringArray", metaVar="OFF	ON	ALL	REALLY ALL", required=true, def="OFF")
47 49
		debug
48 50
if (!ParametersDialog.open(this)) return
......
61 63
	for (def type : analecCorpus.getStructure().getUnites())
62 64
		props.addAll(analecCorpus.getStructure().getUniteProperties(type));
63 65

  
64
	def selectedSchemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size);
66
	def selectedSchemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, strict_inclusion);
65 67
	if (selectedSchemas.size() > 0)
66 68
		allresults[corpus] = selectedSchemas.sort(){it.getUnite0()};
67 69
}

Also available in: Unified diff