Package com.opengamma.engine.function.exclusion

Examples of com.opengamma.engine.function.exclusion.AbstractFunctionExclusionGroups


    value2.setPortfolioNodeProperties(ValueProperties.with(ValuePropertyNames.FUNCTION, FUNCTION_SUM_NODE).withAny(ValuePropertyNames.CURRENCY).get());
    assertEquals(available, new HashSet<AvailableOutput>(Arrays.asList(value1, value2)));
  }

  public void testWithNoExclusion() {
    final AvailableOutputs outputs = new AvailablePortfolioOutputs(_testPortfolio, _functionRepository, new AbstractFunctionExclusionGroups() {
      @Override
      protected String getKey(final FunctionDefinition function) {
        return null;
      }
    }, _marketDataAvailability, WILDCARD);
View Full Code Here


    value2.setPortfolioNodeProperties(ValueProperties.with(ValuePropertyNames.FUNCTION, FUNCTION_SUM_NODE).withAny(ValuePropertyNames.CURRENCY).get());
    assertEquals(available, new HashSet<AvailableOutput>(Arrays.asList(value1, value2)));
  }

  public void testWithExclusion() {
    final AvailableOutputs outputs = new AvailablePortfolioOutputs(_testPortfolio, _functionRepository, new AbstractFunctionExclusionGroups() {
      @Override
      protected String getKey(final FunctionDefinition function) {
        if (FUNCTION_1_TYPE_1_POSITION.equals(function.getUniqueId()) || FUNCTION_1_TYPE_1_SECURITY.equals(function.getUniqueId())) {
          return "group";
        } else {
View Full Code Here

*/
public class DemoFunctionExclusionGroupsFactoryBean extends SingletonFactoryBean<FunctionExclusionGroups> {

  @Override
  protected FunctionExclusionGroups createObject() {
    return new AbstractFunctionExclusionGroups() {

      private final AtomicInteger _nextIdentifier = new AtomicInteger();
      private final ConcurrentMap<Integer, Object> _used = new ConcurrentHashMap<Integer, Object>();

      private boolean notUsed(final Integer intValue, final Object key) {
View Full Code Here

TOP

Related Classes of com.opengamma.engine.function.exclusion.AbstractFunctionExclusionGroups

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.