edu.jhu.ece.iacl.jist.structures.geom
Class EdgeIndexed

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.EdgeIndexed
All Implemented Interfaces:
Indexable<java.lang.Double>, java.lang.Comparable<java.lang.Double>

public class EdgeIndexed
extends java.lang.Object
implements Indexable<java.lang.Double>

The Class EdgeIndexed.


Constructor Summary
EdgeIndexed(double value)
          Instantiates a new edge indexed.
 
Method Summary
 int compareTo(java.lang.Double val)
           
 int getChainIndex()
          Gets the chain index.
 int getColumn()
          Gets the column.
 int getEdgeIndex()
          Gets the edge index.
 int getIndex()
          Get heap index.
 int getRow()
          Gets the row.
 int getSlice()
          Gets the slice.
 int getV1()
          Gets the v1.
 int getV2()
          Gets the v2.
 java.lang.Double getValue()
          Gets the value.
 void setChainIndex(int chainIndex)
          Sets the chain index.
 void setIndex(int index)
          Set index into heap.
 void setPosition(int edgeId, int v1, int v2)
          Sets the position.
 void setRefPosition(int i, int j, int k)
          Set position in volume.
 void setValue(java.lang.Comparable obj)
          Sets the value.
 void setValue(double val)
          Sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeIndexed

public EdgeIndexed(double value)
Instantiates a new edge indexed.

Parameters:
value - the value
Method Detail

setPosition

public void setPosition(int edgeId,
                        int v1,
                        int v2)
Sets the position.

Parameters:
edgeId - the edge id
v1 - the v1
v2 - the v2

setIndex

public void setIndex(int index)
Description copied from interface: Indexable
Set index into heap.

Specified by:
setIndex in interface Indexable<java.lang.Double>
Parameters:
index - the index

setValue

public void setValue(double val)
Sets the value.

Parameters:
val - the new value

getValue

public java.lang.Double getValue()
Description copied from interface: Indexable
Gets the value.

Specified by:
getValue in interface Indexable<java.lang.Double>
Returns:
the value

getV1

public int getV1()
Gets the v1.

Returns:
the v1

getV2

public int getV2()
Gets the v2.

Returns:
the v2

getEdgeIndex

public int getEdgeIndex()
Gets the edge index.

Returns:
the edge index

getRow

public int getRow()
Description copied from interface: Indexable
Gets the row.

Specified by:
getRow in interface Indexable<java.lang.Double>
Returns:
the row

getColumn

public int getColumn()
Description copied from interface: Indexable
Gets the column.

Specified by:
getColumn in interface Indexable<java.lang.Double>
Returns:
the column

getSlice

public int getSlice()
Description copied from interface: Indexable
Gets the slice.

Specified by:
getSlice in interface Indexable<java.lang.Double>
Returns:
the slice

getIndex

public int getIndex()
Description copied from interface: Indexable
Get heap index.

Specified by:
getIndex in interface Indexable<java.lang.Double>
Returns:
the index

getChainIndex

public int getChainIndex()
Description copied from interface: Indexable
Gets the chain index.

Specified by:
getChainIndex in interface Indexable<java.lang.Double>
Returns:
the chain index

setChainIndex

public void setChainIndex(int chainIndex)
Description copied from interface: Indexable
Sets the chain index.

Specified by:
setChainIndex in interface Indexable<java.lang.Double>
Parameters:
chainIndex - the new chain index

setRefPosition

public void setRefPosition(int i,
                           int j,
                           int k)
Description copied from interface: Indexable
Set position in volume.

Specified by:
setRefPosition in interface Indexable<java.lang.Double>
Parameters:
i - row
j - column
k - slice

compareTo

public int compareTo(java.lang.Double val)
Specified by:
compareTo in interface java.lang.Comparable<java.lang.Double>

setValue

public void setValue(java.lang.Comparable obj)
Description copied from interface: Indexable
Sets the value.

Specified by:
setValue in interface Indexable<java.lang.Double>
Parameters:
obj - the new value