org.gcube.indexmanagement.featureindexlibrary.commons
Class FeatureVectorElement

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.FeatureVectorElement

public class FeatureVectorElement
extends Object

The element holding the vector and the id

Author:
UoA

Constructor Summary
FeatureVectorElement(String id, float[] vector)
          Creates a new instance
 
Method Summary
 String getId()
          Retrieves the id
 float[] getVector()
          Retrieves the vector
 void setId(String id)
          Sets the id
 void setVector(float[] vector)
          Sets the vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureVectorElement

public FeatureVectorElement(String id,
                            float[] vector)
Creates a new instance

Parameters:
id - The id
vector - The vector
Method Detail

getId

public String getId()
Retrieves the id

Returns:
The id

setId

public void setId(String id)
Sets the id

Parameters:
id - The id

getVector

public float[] getVector()
Retrieves the vector

Returns:
the vector

setVector

public void setVector(float[] vector)
Sets the vector

Parameters:
vector - The vector


Copyright © 2012. All Rights Reserved.