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.
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.
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.
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)
24
package weka.clusterers.forOPTICSAndDBScan.Utils;
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/>
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 $
40
public class UpdateQueueElement {
43
* Holds the priority for the object (in this case: the reachability-distance)
45
private double priority;
48
* Holds the original object
53
* Holds the key for this object
55
private String objectKey;
57
// *****************************************************************************************************************
59
// *****************************************************************************************************************
60
public UpdateQueueElement(double priority, Object o, String objectKey) {
61
this.priority = priority;
63
this.objectKey = objectKey;
66
// *****************************************************************************************************************
68
// *****************************************************************************************************************
71
* Returns the priority for this object
74
public double getPriority() {
82
public Object getObject() {
90
public String getObjectKey() {
94
// *****************************************************************************************************************
96
// *****************************************************************************************************************