Пример #1
0
 @Override
 public boolean isConfigurationValid(
     TradingAgentFactoryHandle factoryHandle,
     Properties configuration,
     Map<String, String> messages) {
   ITradingAgentFactory factory = retrieveFactory(factoryHandle);
   return factory.isConfigurationValid(configuration, messages);
 }
Пример #2
0
 @Override
 public TradingAgentConfigurationHandle createConfiguration(
     TradingAgentFactoryHandle factoryHandle, Properties properties, String name) {
   ITradingAgentFactory factory = retrieveFactory(factoryHandle);
   TradingAgentConfiguration configuration = new TradingAgentConfiguration(factory, properties);
   TradingAgentConfigurationHandle handle =
       new TradingAgentConfigurationHandle(
           name == null || name.equals("") ? configuration.toString() : name,
           factory.getInputSeriesNames());
   hierarchyContainer.putTradingAgentConfiguration(handle, configuration, factoryHandle);
   return handle;
 }