All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.models.functionflow.FunctionFlow Maven / Gradle / Ivy

There is a newer version: 2024.11.0
Show newest version
/**
 */
package org.nasdanika.models.functionflow;

import java.util.function.BiFunction;

import org.nasdanika.common.Context;
import org.nasdanika.common.ProgressMonitor;
import org.nasdanika.graph.processor.NodeProcessorInfo;
import org.nasdanika.models.architecture.CompositeNode;


/**
 * 
 * A representation of the model object 'Function Flow'.
 * 
 *
 *
 * @see org.nasdanika.models.functionflow.FunctionFlowPackage#getFunctionFlow()
 * @model
 * @generated
 */
public interface FunctionFlow extends Function, CompositeNode, SupplierFlow, ConsumerFlow {
	
//	/**
//	 * Creates a process, invokes starts, returns result produced by ends.
//	 * @param context
//	 * @param progressMonitor
//	 * @return
//	 */
//	default BiFunction createFunction(
//			Object requirement,
//			Context context,
//			ProgressMonitor progressMonitor) {
//		
//		NodeProcessorInfo, BiFunction, BiFunction> processorInfo = (NodeProcessorInfo, BiFunction, BiFunction>) createProcessor(requirement, context, progressMonitor);
//		BiFunction processor = processorInfo.getProcessor();
//		return new BiFunction() {
//			
//			@Override
//			public Object apply(Object input, ProgressMonitor pm) {
//				// Ignoring input configuration - for documentation purposes
//				return processor.apply(input, pm); // Ignoring result
//			}
//		};
//	}
	
} // FunctionFlow




© 2015 - 2025 Weber Informatics LLC | Privacy Policy