Class VolatileMaskedTuple
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.VolatileTuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.VolatileMaskedTuple
-
- All Implemented Interfaces:
ITuple
- Direct Known Subclasses:
VolatileModifiableMaskedTuple
public class VolatileMaskedTuple extends VolatileTuple
This class provides a volatile tuple view with a given mask of a given tuple instance. If the masked tuple changes, the view updates as well.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description VolatileMaskedTuple(ITuple source, TupleMask mask)
VolatileMaskedTuple(TupleMask mask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(int index)
int
getSize()
void
updateTuple(ITuple newSource)
-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.VolatileTuple
equals, hashCode, toImmutable
-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
doCalcHash, getDistinctElements, getElements, internalEquals, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
-
-
-
Method Detail
-
updateTuple
public void updateTuple(ITuple newSource)
-
get
public java.lang.Object get(int index)
- Returns:
- the element at the specified index
-
getSize
public int getSize()
- Returns:
- number of elements
-
-