Package com.quantcomponents.algo

Examples of com.quantcomponents.algo.TradingAgentFactoryHandle


  }
 
  @Override
  public void addTradingAgentFactory(ITradingAgentFactory factory) {
    super.addTradingAgentFactory(factory);
    TradingAgentFactoryHandle factoryHandle = new TradingAgentFactoryHandle(factory.getClass().getName(), factory.getConfigurationKeys());
    if (persistenceDirectory.exists() && persistenceDirectory.isDirectory()) {
      File[] dirFiles = persistenceDirectory.listFiles();
      String dataFileName = factoryHandle.getPrettyName() + ".hierarchy";
      for (File file : dirFiles) {
        if (file.getName().equals(dataFileName)) {
          try {
            FileInputStream inputStream = new FileInputStream(file);
            restoreFactoryHierarchy(factoryHandle, inputStream);
View Full Code Here


    }
  }
 
  @Override
  public void removeTradingAgentFactory(ITradingAgentFactory factory) {
    TradingAgentFactoryHandle factoryHandle = new TradingAgentFactoryHandle(factory.getClass().getName(), factory.getConfigurationKeys());
    persistFactoryHierarchy(factoryHandle);
    super.removeTradingAgentFactory(factory);
  }
View Full Code Here

TOP

Related Classes of com.quantcomponents.algo.TradingAgentFactoryHandle

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.