coins.flow
Class ExpVectorImpl

java.lang.Object
  extended bycoins.flow.BitVectorImpl
      extended bycoins.flow.ExpVectorImpl
All Implemented Interfaces:
BitVector, java.lang.Cloneable, ExpVector
Direct Known Subclasses:
FlowAnalSymVectorImpl

public class ExpVectorImpl
extends BitVectorImpl
implements ExpVector

ExpVectorImpl class


Field Summary
 SubpFlow fSubpFlow
           
 
Fields inherited from class coins.flow.BitVectorImpl
fBitLength, fLongWordLength, fShiftMax, fVectorWord
 
Constructor Summary
protected ExpVectorImpl(SubpFlow pSubpFlow)
           
 
Method Summary
 boolean contains(ExpId pExpId)
          Returns true if this ExpVector's bit corresponding to the given argument pExpId is set.
 java.util.Set exps()
          Returns the Set of ExpIds whose corresponding bits are set in this ExpVector.
static ExpVector expVectorFromSet(java.util.Set pExps, SubpFlow pSubpFlow)
          Returns an ExpVector whose bits that are set correspond to the elements of the given Set pExps.
 ExpVectorIterator expVectorIterator()
           
 SubpFlow getSubpFlow()
          SubpFlow instance associated with this ExpVector.
 java.lang.String toStringByName()
           
 java.lang.String toStringConcise()
           
 java.lang.String toStringDescriptive()
          Returns a possibly more descriptive string representation than toString() of this BitVector.
 java.lang.String toStringShort()
           
 
Methods inherited from class coins.flow.BitVectorImpl
bitVectorIterator, clone, equals, getBit, getBitLength, getVectorWord, getWordLength, hashCode, isSet, isZero, resetBit, setBit, toString, vectorAnd, vectorCopy, vectorEqual, vectorNot, vectorOr, vectorReset, vectorSub, vectorXor
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface coins.flow.BitVector
bitVectorIterator, equals, getBit, getBitLength, getVectorWord, getWordLength, isSet, isZero, resetBit, setBit, toString, vectorAnd, vectorCopy, vectorEqual, vectorNot, vectorOr, vectorReset, vectorSub, vectorXor
 

Field Detail

fSubpFlow

public final SubpFlow fSubpFlow
Constructor Detail

ExpVectorImpl

protected ExpVectorImpl(SubpFlow pSubpFlow)
Method Detail

getSubpFlow

public SubpFlow getSubpFlow()
Description copied from interface: ExpVector
SubpFlow instance associated with this ExpVector.

Specified by:
getSubpFlow in interface ExpVector

exps

public java.util.Set exps()
Description copied from interface: ExpVector
Returns the Set of ExpIds whose corresponding bits are set in this ExpVector.

Specified by:
exps in interface ExpVector

contains

public boolean contains(ExpId pExpId)
Description copied from interface: ExpVector
Returns true if this ExpVector's bit corresponding to the given argument pExpId is set. Returns false otherwise.

Specified by:
contains in interface ExpVector

expVectorFromSet

public static ExpVector expVectorFromSet(java.util.Set pExps,
                                         SubpFlow pSubpFlow)
Returns an ExpVector whose bits that are set correspond to the elements of the given Set pExps.


toStringConcise

public java.lang.String toStringConcise()

toStringShort

public java.lang.String toStringShort()
Specified by:
toStringShort in interface ExpVector

toStringByName

public java.lang.String toStringByName()

toStringDescriptive

public java.lang.String toStringDescriptive()
Description copied from interface: BitVector
Returns a possibly more descriptive string representation than toString() of this BitVector.

Specified by:
toStringDescriptive in interface BitVector
Overrides:
toStringDescriptive in class BitVectorImpl

expVectorIterator

public ExpVectorIterator expVectorIterator()
Specified by:
expVectorIterator in interface ExpVector