~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/java/jsword/org/crosswire/jsword/passage/PassageTally.java

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 * memory than a BitSet sytle PassageTally) And the intuative result
55
55
 * that the BitSet will be faster, I'm going to start by implementing
56
56
 * the latter only.</p>
 
57
 * 
 
58
 * <p>To think about - I've upped the MAX_TALLY to 20000 to help the new
 
59
 * mapper program. I'm not sure why it was originally 100?
 
60
 * 
 
61
 * <p><table border='1' cellPadding='3' cellSpacing='0'>
 
62
 * <tr><td bgColor='white' class='TableRowColor'><font size='-7'>
57
63
 *
58
 
 * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
59
 
 * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
60
64
 * Distribution Licence:<br />
61
 
 * Project B is free software; you can redistribute it
 
65
 * JSword is free software; you can redistribute it
62
66
 * and/or modify it under the terms of the GNU General Public License,
63
67
 * version 2 as published by the Free Software Foundation.<br />
64
68
 * This program is distributed in the hope that it will be useful,
66
70
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
67
71
 * General Public License for more details.<br />
68
72
 * The License is available on the internet
69
 
 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
70
 
 * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
71
 
 * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
 
73
 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, or by writing to:
 
74
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
75
 * MA 02111-1307, USA<br />
72
76
 * The copyright to this program is held by it's authors.
73
77
 * </font></td></tr></table>
74
 
 * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
75
 
 * @see <{docs.Licence}>
76
 
 * @author Joe Walker
 
78
 * @see docs.Licence
 
79
 * @author Joe Walker [joe at eireneh dot com]
77
80
 * @version $Id$
78
81
 */
79
82
public class PassageTally extends AbstractPassage
348
351
    }
349
352
 
350
353
    /**
 
354
     * DONT USE THIS. It makes public something of the ratings scheme which
 
355
     * is not generally recommended. This method is likely to be removed at
 
356
     * a moments notice, and it only here to keep Mapper happy.
 
357
     * Add/Increment this verses in the rankings
 
358
     * @param that The verses to add/increment
 
359
     * @param count The amount to increment by
 
360
     */
 
361
    public void add(VerseBase that, int count)
 
362
    {
 
363
        optimizeWrites();
 
364
 
 
365
        alterVerseBase(that, count);
 
366
        fireIntervalAdded(this, null, null);
 
367
    }
 
368
 
 
369
    /**
351
370
     * Remove/Decrement this verses in the rankings
352
371
     * @param that The verses to remove/decrement
353
372
     */
728
747
    public static final int ORDER_TALLY = 1;
729
748
 
730
749
    /** The highest tally possible */
731
 
    public static final int MAX_TALLY = 100;
 
750
    public static final int MAX_TALLY = 20000;
732
751
 
733
752
    /** The tallyboard itself */
734
753
    private int[] board = new int[Books.versesInBible()];