net.sourceforge.combean.adapters.drasys.lp
Class VectorElementIAsVectorValue

Package class diagram package VectorElementIAsVectorValue
java.lang.Object
  extended by net.sourceforge.combean.adapters.drasys.lp.VectorElementIAsVectorValue
All Implemented Interfaces:
VectorValue<NoLabel>

public class VectorElementIAsVectorValue
extends Object
implements VectorValue<NoLabel>

Wrap a single VectorElementI.


Constructor Summary
VectorElementIAsVectorValue(drasys.or.matrix.VectorElementI elem)
          Constructor.
 
Method Summary
 double doubleValue()
          The value of the component.
 int index()
          The index of the component.
 NoLabel label()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorElementIAsVectorValue

public VectorElementIAsVectorValue(drasys.or.matrix.VectorElementI elem)
Constructor.

Parameters:
elem - VectorElementI to be wrapped.
Method Detail

doubleValue

public double doubleValue()
Description copied from interface: VectorValue
The value of the component.

Specified by:
doubleValue in interface VectorValue<NoLabel>
Returns:
value

index

public int index()
Description copied from interface: VectorValue
The index of the component.

Specified by:
index in interface VectorValue<NoLabel>
Returns:
index.

label

public NoLabel label()
Specified by:
label in interface VectorValue<NoLabel>
Returns:
a label which may carry arbitrary additional information about the component of the vector.