[Javamatch-cvs] javamatch/docs/website javamatch.xml,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
iterson
From: Walter v. I. <it...@us...> - 2004-09-03 09:45:02
|
Update of /cvsroot/javamatch/javamatch/docs/website In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18104 Modified Files: javamatch.xml Log Message: Updated project history, expanded car service intervals example, fixed some typos Index: javamatch.xml =================================================================== RCS file: /cvsroot/javamatch/javamatch/docs/website/javamatch.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** javamatch.xml 3 Sep 2004 08:21:04 -0000 1.1.1.1 --- javamatch.xml 3 Sep 2004 09:44:37 -0000 1.2 *************** *** 73,79 **** for example if the car has had regular service intervals. In this case, you can create your own queries by extending class MatchQuery, or one of its subclasses. ! All you has to do is provide an implementation of <i>getMatchValue</i>, and your query can be part of the matching process. </p> <p> More information about extensions can be found in the docs directory in the distribution --- 73,100 ---- for example if the car has had regular service intervals. In this case, you can create your own queries by extending class MatchQuery, or one of its subclasses. ! All you have to do is provide an implementation of <i>getMatchValue</i>, and your query can be part of the matching process. </p> + <p class="source"><i>/** + * Class RegularServiceIntervals a query to be used by JavaMatch, + * that checks if a Car has has been services frequently + */</i> + public class RegularServiceIntervals <b>extends MatchQuery</b> { + <i>/** + * Calculates the regularity of the service intervals + * @param matchedObject the car from which the service intervals + * are checked + * @return an indicator for how regular the car was serviced + */</i> + <b>public float getMatchValue(Object matchedObject) + throws MatchException {</b> + Car carToMatch = (Car)matchedObject; + List services = carToMatch.getServices(); + ... + <i>// calculate and return a value (from 0 to 1, both inclusive) + // for how regular the services took place</i> + } + } + </p> <p> More information about extensions can be found in the docs directory in the distribution *************** *** 83,88 **** <h2>Download</h2> <p> ! JavaMatch is distributed in several formats: source and binary. It can be downloaded ! from sourceforge. </p> <h2>Installation</h2> --- 104,108 ---- <h2>Download</h2> <p> ! JavaMatch can be downloaded from <a href="http://sourceforge.net/projects/javamatch">sourceforge</a>. </p> <h2>Installation</h2> *************** *** 92,97 **** </p> <p> ! The source distribution can be built with <a href="http://ant.apache.org">ant</a>. The ! following targets are supported: </p> <table class="enum"> --- 112,117 ---- </p> <p> ! The source distribution can be built with <a href="http://ant.apache.org">ant</a> ! (separate download). The following targets are supported: </p> <table class="enum"> *************** *** 101,115 **** </tr> <tr> <td>dist</td> ! <td>Build the JavaMatch engine, generate the documentation and create a jar file ! that contains the complete distribution</td> </tr> <tr> ! <td>build</td> ! <td>Build the JavaMatch engine</td> </tr> <tr> ! <td>docs</td> ! <td>Generate the documentation</td> </tr> </table> --- 121,138 ---- </tr> <tr> + <td>clean</td> + <td>Cleans up all generated stuff</td> + </tr> + <tr> <td>dist</td> ! <td>Creates a distribution</td> </tr> <tr> ! <td>run</td> ! <td>Runs the sample application</td> </tr> <tr> ! <td>test</td> ! <td>Runs all automated tests</td> </tr> </table> *************** *** 155,159 **** <div class="intro"> Currently, this section is used to gather ideas about the implementation. They will ! be completed and structured bfore release 1.0 </div> <p> --- 178,182 ---- <div class="intro"> Currently, this section is used to gather ideas about the implementation. They will ! be completed and structured before release 1.0 </div> <p> *************** *** 231,234 **** --- 254,261 ---- </tr> <tr> + <td>0.x</td> + <td>...</td> + </tr> + <tr> <td>1.0</td> <td> *************** *** 248,251 **** --- 275,283 ---- </tr> <tr> + <td>20040903</td> + <td>Made mailing lists, cvs archive, updates to web site + </td> + </tr> + <tr> <td>20040901</td> <td>API documentation is also on web site, added exception handling, |