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

cdm.product.template.functions.FpmlIrd8 Maven / Gradle / Ivy

There is a newer version: 6.0.0-dev.92
Show newest version
package cdm.product.template.functions;

import cdm.base.staticdata.party.Account;
import cdm.product.template.TradableProduct;
import com.google.inject.ImplementedBy;
import com.rosetta.model.lib.functions.RosettaFunction;
import java.util.List;


@ImplementedBy(FpmlIrd8.FpmlIrd8Default.class)
public abstract class FpmlIrd8 implements RosettaFunction {

	/**
	* @param tradableProduct 
	* @param accounts 
	* @return success Validation result
	*/
	public Boolean evaluate(TradableProduct tradableProduct, List accounts) {
		Boolean success = doEvaluate(tradableProduct, accounts);
		
		return success;
	}

	protected abstract Boolean doEvaluate(TradableProduct tradableProduct, List accounts);

	public static class FpmlIrd8Default extends FpmlIrd8 {
		@Override
		protected Boolean doEvaluate(TradableProduct tradableProduct, List accounts) {
			Boolean success = null;
			return assignOutput(success, tradableProduct, accounts);
		}
		
		protected Boolean assignOutput(Boolean success, TradableProduct tradableProduct, List accounts) {
			return success;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy