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

com.meliorbis.economics.infrastructure.notifications.ArrayObserver Maven / Gradle / Ivy

Go to download

A library for solving economic models, particularly macroeconomic models with heterogeneous agents who have model-consistent expectations

There is a newer version: 1.1
Show newest version
/**
 * 
 */
package com.meliorbis.economics.infrastructure.notifications;

import com.meliorbis.economics.model.State;
import com.meliorbis.numerics.generic.primitives.DoubleArray;

/**
 * A functional interface to receive notifications when an array value is updated
 * 
 * @author Tobias Grasl
 * 
 * @param  The type of State to be observed
 */
@FunctionalInterface
public interface ArrayObserver>
{
	
	/**
	 * Notifies the implementor that the array in question has changed
	 * 
	 * @param oldArray_ The old values
	 * @param newArray_ The new values
	 * @param state_ The current calculation state
	 */
	void changed(DoubleArray oldArray_, DoubleArray newArray_, S state_);
}