if (NodeTypeEnums.isLeftTupleSource(sink)) {
nodeTypesInSegment = updateRiaAndTerminalMemory((LeftTupleSource) sink, originalLt, smem, wm, fromPrototype, nodeTypesInSegment);
} else if (sink.getType() == NodeTypeEnums.RightInputAdaterNode) {
// Only add the RIANode, if the LeftTupleSource is part of the RIANode subnetwork.
if (inSubNetwork((RightInputAdapterNode) sink, originalLt)) {
RiaNodeMemory riaMem = (RiaNodeMemory) wm.getNodeMemory((MemoryFactory) sink);
PathMemory pmem = riaMem.getRiaPathMemory();
smem.getPathMemories().add(pmem);
pmem.getSegmentMemories()[smem.getPos()] = smem;
if (fromPrototype) {
ObjectSink[] nodes = ((RightInputAdapterNode) sink).getSinkPropagator().getSinks();