Exemplo n.º 1
0
    public override void AgentAction(float[] vectorAction)
    {
        var command = new DoActionCommand();

        command.id    = this.id;
        command.value = vectorAction;
        float reward = academy.SendData(id, command, true);

        AddReward(reward);
    }
Exemplo n.º 2
0
 public UpdateCustomerCommand(
     PersistEntityPipeline persistEntityPipeline,
     FindEntityCommand findEntityCommand,
     IServiceProvider serviceProvider,
     GetCustomerCommand getCustomerCommand,
     GetEntityViewCommand getEntityViewCommand,
     DoActionCommand doActionCommand)
     : base(serviceProvider)
 {
     this._getCustomerCommand    = getCustomerCommand;
     this._getEntityViewCommand  = getEntityViewCommand;
     this._doActionCommand       = doActionCommand;
     this._persistEntityPipeline = persistEntityPipeline;
     this._findEntityCommand     = findEntityCommand;
 }
 /// <summary>
 /// c'tor
 /// </summary>
 /// <param name="createSellableItemCommand">createSellableItemCommand</param>
 /// <param name="associateSellableItemToParentCommand">associateSellableItemToParentCommand</param>
 /// <param name="getSellableItemCommand">getSellableItemCommand</param>
 /// <param name="editSellableItemCommand">editSellableItemCommand</param>
 /// <param name="getSellableItemConnectCommand">GetSellableItemConnectCommand</param>
 public ProductImporter(
     CreateSellableItemCommand createSellableItemCommand,
     AssociateSellableItemToParentCommand associateSellableItemToParentCommand,
     GetSellableItemCommand getSellableItemCommand,
     EditSellableItemCommand editSellableItemCommand,
     GetSellableItemConnectCommand getSellableItemConnectCommand,
     GetEntityViewCommand getEntityViewCommand,
     DoActionCommand doActionCommand)
 {
     _createSellableItemCommand            = createSellableItemCommand;
     _associateSellableItemToParentCommand = associateSellableItemToParentCommand;
     _getSellableItemCommand        = getSellableItemCommand;
     _editSellableItemCommand       = editSellableItemCommand;
     _getSellableItemConnectCommand = getSellableItemConnectCommand;
     _getEntityViewCommand          = getEntityViewCommand;
     _doActionCommand = doActionCommand;
 }