Class AbstractDataStream<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.move.streams.dataset.AbstractDataStream<Solution_>
- All Implemented Interfaces:
BavetStream
- Direct Known Subclasses:
AbstractUniDataStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AbstractDataStream<Solution_>>protected final DataStreamFactory<Solution_>protected final @Nullable AbstractDataStream<Solution_> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataStream(DataStreamFactory<Solution_> dataStreamFactory, @Nullable AbstractDataStream<Solution_> parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidabstract voidbuildNode(DataNodeBuildHelper<Solution_> buildHelper) voidcollectActiveDataStreams(Set<AbstractDataStream<Solution_>> constraintStreamSet) final List<AbstractDataStream<Solution_>>final @Nullable AbstractDataStream<Solution_>Returns the stream which first produced the tuple that this stream operates on.final <Stream_ extends AbstractDataStream<Solution_>>
Stream_shareAndAddChild(Stream_ stream)
-
Field Details
-
dataStreamFactory
-
parent
-
childStreamList
-
-
Constructor Details
-
AbstractDataStream
protected AbstractDataStream(DataStreamFactory<Solution_> dataStreamFactory, @Nullable AbstractDataStream<Solution_> parent)
-
-
Method Details
-
collectActiveDataStreams
-
getTupleSource
Returns the stream which first produced the tuple that this stream operates on. If a stream does not have a single parent nor is it a source, it is expected to override this method.- Returns:
- this if
TupleSource, otherwise parent's tuple source.
-
buildNode
-
assertEmptyChildStreamList
protected void assertEmptyChildStreamList() -
getParent
- Specified by:
getParentin interfaceBavetStream
-
getChildStreamList