net.finmath.modelling.Model Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
/*
* (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 extends ProductDescriptor> getProductFromDesciptor(ProductDescriptor productDescriptor) { throw new UnsupportedOperationException(); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy