Prolog Query API

  • QueryDescription Each query can have a description to be shown on the java part.
   query_description(+queryName,+queryType, +Description).
   e.g.  query_description(nopSmell,smell,'empty statement').
  • Smell
  smell(+smellName,-ListOfStatementIDs)
  • Metric
   metric(+metricName, -ID,-ComputedMetric). 
   metric_attributes(+metricName, +Range, +Threshold)
  • Dependency (This fits neither as a smell nor metric)
  dependency_package(DependentId,DependeeId, SccNumber,DependencyDegree).
  dependency_class(DependentId,DependeeId,DependencyDegree).
  dependency_term(DependentId,DependeeId, DependentTerms).
  • TermMetric
  termmetric(+metricName,?Scope,-ID, - [ [Term,ComputedMetric,IsIntroduced] ]).
  • TermQuery
  Each differ in syntax, all start with termquery(+queryName,..).
  • ArchitectureQueries
  • Inheritance/Implementation
  inheritance(ClassId,SuperClassId).
  implements(ClassId,SuperClassId).
Last modified: 2014/04/10 03:42
 
*