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

net.finmath.modelling.Model Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
/*
 * (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
 *
 * Created on 11.10.2013
 */

package net.finmath.modelling;

/**
 * Interface for a describable model.
 * For a description of the general concept see http://finmath.net/finmath-lib/concepts/separationofproductandmodel.
 * 
 * @author Christian Fries
 */
public interface Model {

	/**
	 * Return a model descriptor representing this model.
	 * 
	 * @return The model descriptor of this model.
	 */
	default T getDescriptor() { throw new UnsupportedOperationException(); }

	/**
	 * Construct a product from a product descriptor, which may be valued by this mmodel.
	 * 
	 * @param productDescriptor Given product descriptor.
	 * @return An instance of a product implementation.
	 */
	default Product getProductFromDesciptor(ProductDescriptor productDescriptor) { throw new UnsupportedOperationException(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy