1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_08) on Fri Apr 20 12:42:47 CEST 2007 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
8 DifferencesServices (EMF Compare Javadoc)
11 <META NAME=
"keywords" CONTENT=
"org.eclipse.emf.compare.match.statistic.DifferencesServices class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"DifferencesServices (EMF Compare Javadoc)";
26 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME=
"navbar_top"><!-- --></A>
31 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
32 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
34 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
35 <A NAME=
"navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
37 <TR ALIGN=
"center" VALIGN=
"top">
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/DifferencesServices.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 PREV CLASS
57 <A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/MatchingSimilarityPlugin.html" title=
"class in org.eclipse.emf.compare.match.statistic"><B>NEXT CLASS
</B></A></FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"../../../../../../index.html?org/eclipse/emf/compare/match/statistic/DifferencesServices.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"DifferencesServices.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.eclipse.emf.compare.match.statistic
</FONT>
91 Class DifferencesServices
</H2>
94 <IMG SRC=
"../../../../../../resources/inherit.gif" ALT=
"extended by "><B>org.eclipse.emf.compare.match.statistic.DifferencesServices
</B>
97 <DT><B>All Implemented Interfaces:
</B> <DD><A HREF=
"../../../../../../org/eclipse/emf/compare/match/api/MatchEngine.html" title=
"interface in org.eclipse.emf.compare.match.api">MatchEngine
</A></DD>
101 <DT><PRE>public class
<B>DifferencesServices
</B><DT>extends java.lang.Object
<DT>implements
<A HREF=
"../../../../../../org/eclipse/emf/compare/match/api/MatchEngine.html" title=
"interface in org.eclipse.emf.compare.match.api">MatchEngine
</A></DL>
105 These services are usefull when one want to compare models
107 more precisely using the method modelDiff.
109 Known bugs and limitation:
1- modeldiff only works if the two roots given are
117 <!-- =========== FIELD SUMMARY =========== -->
119 <A NAME=
"field_summary"><!-- --></A>
120 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
121 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
122 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
123 <B>Field Summary
</B></FONT></TH>
125 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
126 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
127 <CODE>protected
<A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/MetamodelFilter.html" title=
"class in org.eclipse.emf.compare.match.statistic">MetamodelFilter
</A></CODE></FONT></TD>
128 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#filter">filter
</A></B></CODE>
131 a Filter
</TD>
133 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
134 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
135 <CODE>static
int
</CODE></FONT></TD>
136 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#SOFT_STRATEGY">SOFT_STRATEGY
</A></B></CODE>
139 Soft strategy considers ADD, REMOVE, CHANGE, MOVE and RENAME operations.
</TD>
141 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
142 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
143 <CODE>static
int
</CODE></FONT></TD>
144 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#STRONG_STRATEGY">STRONG_STRATEGY
</A></B></CODE>
147 Strong strategy considers only ADD, REMOVE or CHANGE operations
</TD>
151 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
153 <A NAME=
"constructor_summary"><!-- --></A>
154 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
155 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
156 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
157 <B>Constructor Summary
</B></FONT></TH>
159 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
160 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#DifferencesServices()">DifferencesServices
</A></B>()
</CODE>
163 </TD>
167 <!-- ========== METHOD SUMMARY =========== -->
169 <A NAME=
"method_summary"><!-- --></A>
170 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
171 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
172 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
173 <B>Method Summary
</B></FONT></TH>
175 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
176 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
177 <CODE> double
</CODE></FONT></TD>
178 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#absoluteMetric(EObject, EObject)">absoluteMetric
</A></B>(EObject
obj1,
179 EObject
obj2)
</CODE>
182 </TD>
184 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
185 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
186 <CODE> <A HREF=
"../../../../../../org/eclipse/emf/compare/match/MatchModel.html" title=
"interface in org.eclipse.emf.compare.match">MatchModel
</A></CODE></FONT></TD>
187 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#modelMatch(EObject, EObject, IProgressMonitor)">modelMatch
</A></B>(EObject
root1,
189 IProgressMonitor
monitor)
</CODE>
192 Return a mapping model between the two other models..
</TD>
194 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
195 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
196 <CODE> void
</CODE></FONT></TD>
197 <TD><CODE><B><A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/DifferencesServices.html#setStrategy(int)">setStrategy
</A></B>(int
strategyId)
</CODE>
200 Set a different kind of strategy. default is SOFT_STRATEGY.
</TD>
203 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
204 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
205 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
206 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
215 <!-- ============ FIELD DETAIL =========== -->
217 <A NAME=
"field_detail"><!-- --></A>
218 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
219 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
220 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
221 <B>Field Detail
</B></FONT></TH>
225 <A NAME=
"STRONG_STRATEGY"><!-- --></A><H3>
228 public static int
<B>STRONG_STRATEGY
</B></PRE>
230 <DD>Strong strategy considers only ADD, REMOVE or CHANGE operations
237 <A NAME=
"SOFT_STRATEGY"><!-- --></A><H3>
240 public static int
<B>SOFT_STRATEGY
</B></PRE>
242 <DD>Soft strategy considers ADD, REMOVE, CHANGE, MOVE and RENAME operations.
249 <A NAME=
"filter"><!-- --></A><H3>
252 protected
<A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/MetamodelFilter.html" title=
"class in org.eclipse.emf.compare.match.statistic">MetamodelFilter
</A> <B>filter
</B></PRE>
260 <!-- ========= CONSTRUCTOR DETAIL ======== -->
262 <A NAME=
"constructor_detail"><!-- --></A>
263 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
264 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
265 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
266 <B>Constructor Detail
</B></FONT></TH>
270 <A NAME=
"DifferencesServices()"><!-- --></A><H3>
271 DifferencesServices
</H3>
273 public
<B>DifferencesServices
</B>()
</PRE>
277 <!-- ============ METHOD DETAIL ========== -->
279 <A NAME=
"method_detail"><!-- --></A>
280 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
281 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
282 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
283 <B>Method Detail
</B></FONT></TH>
287 <A NAME=
"setStrategy(int)"><!-- --></A><H3>
290 public void
<B>setStrategy
</B>(int
strategyId)
</PRE>
292 <DD>Set a different kind of strategy. default is SOFT_STRATEGY.
298 <DT><B>Parameters:
</B><DD><CODE>strategyId
</CODE> -
</DL>
303 <A NAME=
"absoluteMetric(EObject, EObject)"><!-- --></A><H3>
306 public double
<B>absoluteMetric
</B>(EObject
obj1,
308 throws
<A HREF=
"../../../../../../org/eclipse/emf/compare/util/FactoryException.html" title=
"class in org.eclipse.emf.compare.util">FactoryException
</A></PRE>
314 <DT><B>Parameters:
</B><DD><CODE>obj1
</CODE> -
<DD><CODE>obj2
</CODE> -
315 <DT><B>Returns:
</B><DD>an absolute comparison metric
317 <DD><CODE><A HREF=
"../../../../../../org/eclipse/emf/compare/util/FactoryException.html" title=
"class in org.eclipse.emf.compare.util">FactoryException
</A></CODE></DL>
322 <A NAME=
"modelMatch(EObject, EObject, IProgressMonitor)"><!-- --></A><H3>
325 public
<A HREF=
"../../../../../../org/eclipse/emf/compare/match/MatchModel.html" title=
"interface in org.eclipse.emf.compare.match">MatchModel
</A> <B>modelMatch
</B>(EObject
root1,
327 IProgressMonitor
monitor)
328 throws java.lang.InterruptedException
</PRE>
330 <DD>Return a mapping model between the two other models..
332 Basically the difference is calculated this way : - both models are
333 browsed and compared, Mappings are created when two nodes are considered
334 as similar - Nodes wich has not been mapped are compared in order to map
335 them - The mapping tree is browsed in order to determine the modification
336 log - the modification log (an EMF model) is returned
338 Known bugs and limitation:
1°- modeldiff only works if the two roots
342 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../../org/eclipse/emf/compare/match/api/MatchEngine.html#modelMatch(EObject, EObject, IProgressMonitor)">modelMatch
</A></CODE> in interface
<CODE><A HREF=
"../../../../../../org/eclipse/emf/compare/match/api/MatchEngine.html" title=
"interface in org.eclipse.emf.compare.match.api">MatchEngine
</A></CODE></DL>
345 <DT><B>Parameters:
</B><DD><CODE>root1
</CODE> - the first root element
<DD><CODE>root2
</CODE> - the second root element
346 <DT><B>Returns:
</B><DD>a mapping model between the two other models..
348 <DD><CODE>java.lang.InterruptedException
</CODE>
349 <DD><CODE><A HREF=
"../../../../../../org/eclipse/emf/compare/util/FactoryException.html" title=
"class in org.eclipse.emf.compare.util">FactoryException
</A></CODE>
350 <DD><CODE>ENodeCastException
</CODE></DL>
353 <!-- ========= END OF CLASS DATA ========= -->
357 <!-- ======= START OF BOTTOM NAVBAR ====== -->
358 <A NAME=
"navbar_bottom"><!-- --></A>
359 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
360 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
362 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
363 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
364 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
365 <TR ALIGN=
"center" VALIGN=
"top">
366 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
367 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
368 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
369 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/DifferencesServices.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
370 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
371 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
372 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
373 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
377 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
378 Copyright
2006 IBM Corporation and others.
<br> All Rights Reserved.
</EM>
383 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
384 PREV CLASS
385 <A HREF=
"../../../../../../org/eclipse/emf/compare/match/statistic/MatchingSimilarityPlugin.html" title=
"class in org.eclipse.emf.compare.match.statistic"><B>NEXT CLASS
</B></A></FONT></TD>
386 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
387 <A HREF=
"../../../../../../index.html?org/eclipse/emf/compare/match/statistic/DifferencesServices.html" target=
"_top"><B>FRAMES
</B></A>
388 <A HREF=
"DifferencesServices.html" target=
"_top"><B>NO FRAMES
</B></A>
389 <SCRIPT type=
"text/javascript">
392 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
397 <A HREF=
"../../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
404 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
405 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
406 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
407 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
410 <A NAME=
"skip-navbar_bottom"></A>
411 <!-- ======== END OF BOTTOM NAVBAR ======= -->