com.meliorbis.economics.infrastructure.notifications.ArrayObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ModelSolver Show documentation
Show all versions of ModelSolver Show documentation
A library for solving economic models, particularly
macroeconomic models with heterogeneous agents who have model-consistent
expectations
/**
*
*/
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_);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy