weka.clusterers.forOPTICSAndDBScan.Utils.UpdateQueueElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weka-stable Show documentation
Show all versions of weka-stable Show documentation
The Waikato Environment for Knowledge Analysis (WEKA), a machine
learning workbench. This is the stable version. Apart from bugfixes, this version
does not receive any other updates.
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* Copyright (C) 2004
* & Matthias Schubert ([email protected])
* & Zhanna Melnikova-Albrecht ([email protected])
* & Rainer Holzmann ([email protected])
*/
package weka.clusterers.forOPTICSAndDBScan.Utils;
import weka.core.RevisionHandler;
import weka.core.RevisionUtils;
/**
*
* UpdateQueueElement.java
* Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
* Date: Aug 31, 2004
* Time: 6:43:18 PM
* $ Revision 1.4 $
*
*
* @author Matthias Schubert ([email protected])
* @author Zhanna Melnikova-Albrecht ([email protected])
* @author Rainer Holzmann ([email protected])
* @version $Revision: 1.3 $
*/
public class UpdateQueueElement
implements RevisionHandler {
/**
* Holds the priority for the object (in this case: the reachability-distance)
*/
private double priority;
/**
* Holds the original object
*/
private Object o;
/**
* Holds the key for this object
*/
private String objectKey;
// *****************************************************************************************************************
// constructors
// *****************************************************************************************************************
public UpdateQueueElement(double priority, Object o, String objectKey) {
this.priority = priority;
this.o = o;
this.objectKey = objectKey;
}
// *****************************************************************************************************************
// methods
// *****************************************************************************************************************
/**
* Returns the priority for this object
* @return priority
*/
public double getPriority() {
return priority;
}
/**
* Returns the object
* @return
*/
public Object getObject() {
return o;
}
/**
* Returns the key
* @return objectKey
*/
public String getObjectKey() {
return objectKey;
}
/**
* Returns the revision string.
*
* @return the revision
*/
public String getRevision() {
return RevisionUtils.extract("$Revision: 1.3 $");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy