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

com.tacitknowledge.slowlight.proxyserver.handler.behavior.BehaviorFunction Maven / Gradle / Ivy

The newest version!
package com.tacitknowledge.slowlight.proxyserver.handler.behavior;

import java.util.Map;

import com.tacitknowledge.slowlight.proxyserver.config.BehaviorFunctionConfig;

/**
 * @author Alexandr Donciu ([email protected])
 */
public interface BehaviorFunction
{
    /**
     * Evaluates a function using specified parameters.
     *
     * @param params function parameters
     * @return evaluation result
     */
    Object evaluate(Map params);

    /**
     * Checks if function should be evaluated (ex. it can check if function is applicable for a given time interval).
     *
     * @return true if function should be evaluated, otherwise false
     */
	boolean shouldEvaluate(BehaviorFunctionConfig functionConfig);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy