org.mwg.plugin.NodeFactory Maven / Gradle / Ivy
package org.mwg.plugin;
import org.mwg.Graph;
import org.mwg.Node;
/**
* NodeFactory plugin allows to propose alternative implementations for {@link Node}.
* This specialization allows ot inject particular behavior into {@link Node} such as machine learning, extrapolation function.
*/
@FunctionalInterface
public interface NodeFactory {
/**
* Create a new Node
*
* @param world current world
* @param time current time
* @param id current node id
* @param graph current graph
* @param initialResolution current resolved world/superTime/time and associated magics
* @return newly created Node object
*/
Node create(long world, long time, long id, Graph graph, long[] initialResolution);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy