﻿<metric>
    <acronym>LCOM</acronym>
    <title>Lack Of Cohesion Method</title>
    <authority>
      <authors name="C&K" date="1994" />
    </authority>
    <computation> 
	<dmmQuery>
		<visitor scope="class">
			<variable name="lcom" type="long" scope="class" />

			<variable name="methodInvokes" type="set" scope="class" />
			<math:expression>
				<intersect>
				<linkList name=" methodInvokes"/>
          				<add datatype="long">
						<linkString name=”m” />
	         		 	</add>
				</linkList>
				</intersect>
			</math:expression>
		</visitor>

		<visitor scope="variables" variableName=”v”>
			<math:expression>
				<linkSet name="methodInvokes "/>
          				<add datatype="long">
						<linklong>1</linkLong>
	         		 	</add>
				</linkSet>
			</math:expression>
		</visitor>
	</dmmQuery> 
    </computation>
  </metric>
