~ubuntu-branches/ubuntu/precise/weka/precise

« back to all changes in this revision

Viewing changes to weka/clusterers/forOPTICSAndDBScan/Utils/UpdateQueueElement.java

  • Committer: Bazaar Package Importer
  • Author(s): Soeren Sonnenburg
  • Date: 2008-02-24 09:18:45 UTC
  • Revision ID: james.westby@ubuntu.com-20080224091845-1l8zy6fm6xipbzsr
Tags: upstream-3.5.7+tut1
ImportĀ upstreamĀ versionĀ 3.5.7+tut1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *    This program is free software; you can redistribute it and/or modify
 
3
 *    it under the terms of the GNU General Public License as published by
 
4
 *    the Free Software Foundation; either version 2 of the License, or
 
5
 *    (at your option) any later version.
 
6
 *
 
7
 *    This program is distributed in the hope that it will be useful,
 
8
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 *    GNU General Public License for more details.
 
11
 *
 
12
 *    You should have received a copy of the GNU General Public License
 
13
 *    along with this program; if not, write to the Free Software
 
14
 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
15
 */
 
16
 
 
17
/*
 
18
 *    Copyright (C) 2004
 
19
 *    & Matthias Schubert (schubert@dbs.ifi.lmu.de)
 
20
 *    & Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de)
 
21
 *    & Rainer Holzmann (holzmann@cip.ifi.lmu.de)
 
22
 */
 
23
 
 
24
package weka.clusterers.forOPTICSAndDBScan.Utils;
 
25
 
 
26
/**
 
27
 * <p>
 
28
 * UpdateQueueElement.java <br/>
 
29
 * Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert <br/>
 
30
 * Date: Aug 31, 2004 <br/>
 
31
 * Time: 6:43:18 PM <br/>
 
32
 * $ Revision 1.4 $ <br/>
 
33
 * </p>
 
34
 *
 
35
 * @author Matthias Schubert (schubert@dbs.ifi.lmu.de)
 
36
 * @author Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de)
 
37
 * @author Rainer Holzmann (holzmann@cip.ifi.lmu.de)
 
38
 * @version $Revision: 1.2 $
 
39
 */
 
40
public class UpdateQueueElement {
 
41
 
 
42
    /**
 
43
     * Holds the priority for the object (in this case: the reachability-distance)
 
44
     */
 
45
    private double priority;
 
46
 
 
47
    /**
 
48
     * Holds the original object
 
49
     */
 
50
    private Object o;
 
51
 
 
52
    /**
 
53
     * Holds the key for this object
 
54
     */
 
55
    private String objectKey;
 
56
 
 
57
    // *****************************************************************************************************************
 
58
    // constructors
 
59
    // *****************************************************************************************************************
 
60
    public UpdateQueueElement(double priority, Object o, String objectKey) {
 
61
        this.priority = priority;
 
62
        this.o = o;
 
63
        this.objectKey = objectKey;
 
64
    }
 
65
 
 
66
    // *****************************************************************************************************************
 
67
    // methods
 
68
    // *****************************************************************************************************************
 
69
 
 
70
    /**
 
71
     * Returns the priority for this object
 
72
     * @return priority
 
73
     */
 
74
    public double getPriority() {
 
75
        return priority;
 
76
    }
 
77
 
 
78
    /**
 
79
     * Returns the object
 
80
     * @return
 
81
     */
 
82
    public Object getObject() {
 
83
        return o;
 
84
    }
 
85
 
 
86
    /**
 
87
     * Returns the key
 
88
     * @return objectKey
 
89
     */
 
90
    public String getObjectKey() {
 
91
        return objectKey;
 
92
    }
 
93
 
 
94
    // *****************************************************************************************************************
 
95
    // inner classes
 
96
    // *****************************************************************************************************************
 
97
 
 
98
}