Esempio n. 1
0
 @Override
 public boolean isConfigurationValid(
     TradingAgentFactoryHandle factoryHandle,
     Properties configuration,
     Map<String, String> messages) {
   ITradingAgentFactory factory = retrieveFactory(factoryHandle);
   return factory.isConfigurationValid(configuration, messages);
 }
Esempio n. 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;
 }