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

com.opengamma.strata.product.rate.RateComputation Maven / Gradle / Ivy

/*
 * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.product.rate;

import com.google.common.collect.ImmutableSet;
import com.opengamma.strata.basics.index.Index;

/**
 * Defines a mechanism for computing a rate.
 * 

* A floating rate can be observed in a number of ways, including from one index, * interpolating two indices, averaging an index on specific dates, overnight compounding * and overnight averaging. *

* Each implementation contains the necessary information to compute the rate. *

* Implementations must be immutable and thread-safe beans. */ public interface RateComputation { /** * Collects all the indices referred to by this computation. *

* A computation will typically refer to one index, such as 'GBP-LIBOR-3M'. * Each index that is referred to must be added to the specified builder. * * @param builder the builder to use */ public abstract void collectIndices(ImmutableSet.Builder builder); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy