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

fr.boreal.model.functions.Invoker Maven / Gradle / Ivy

The newest version!
package fr.boreal.model.functions;

import java.util.Optional;

import fr.boreal.model.logicalElements.api.Term;

/**
 * An Invoker is an object that invoke (execute) a function
 * @author Florent Tornil
 *
 */
public interface Invoker {

	/**
	 * Execute the function associated to this Invoker object with the given arguments
	 * @param args the array of term arguments
	 * @return the result term or an empty optional if an error occurred
	 */
    Optional invoke(Term... args);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy