/FileExtraction/Java_unseen/crisis-economics_CRISIS/CRISIS/src/eu/crisis_economics/abm/bank/strategies/BankStrategy.java
/*
 * This file is part of CRISIS, an economics simulator.
 * 
 * Copyright (C) 2015 Victor Spirin
 * Copyright (C) 2015 Ross Richardson
 * Copyright (C) 2015 John Kieran Phillips
 * Copyright (C) 2015 Daniel Tang
 * Copyright (C) 2015 Olaf Bochmann
 * Copyright (C) 2015 AITIA International, Inc.
 *
 * CRISIS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * CRISIS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with CRISIS.  If not, see <http://www.gnu.org/licenses/>.
 */
package eu.crisis_economics.abm.bank.strategies;

import eu.crisis_economics.abm.bank.StrategyBank;
import eu.crisis_economics.abm.markets.nonclearing.Order;

public interface BankStrategy {
   /**
     * Subclasses should implement the bank's deposit-market strategy by overriding this function. 
     * This method is called once in each turn to allow the bank to make its move. The default 
     * implementation does nothing.
     */
   public abstract void considerDepositMarkets();
   
   /**
     * Subclasses should implement the bank's commercial loan strategy here. This method is called 
     * once in each turn to allow the bank to make its move. The default implementation does
     * nothing.
     */
   public abstract void considerCommercialLoanMarkets();
   
   /**
     * Subclasses should implement the bank's stock-market strategy here. This method is called 
     * once in each turn to allow the bank to make its move. The default implementation does
     * nothing.
     */
   public abstract void considerStockMarkets();
   
   /**
     * Subclasses should implement the bank's interbank-loan-market strategy here. This method is
     * called once in each turn to allow the bank to make its move. The default implementation 
     * does nothing.
     */
   public abstract void considerInterbankMarkets();
   
   public abstract void afterInterbankMarkets();
   
   /**
     * Gets the current deposit rate.
     */
   public double getDepositRate();
   
   /**
     * Gets the current lending rate.
     */
   public double getLendingRate();
   
   /**
     * Gets the current interbank lending rate.
     */
   public double getInterLendingRate();
   
   /**
     * Register (respond to as appropriate a new bank order).
     */
   public void registerNewOrder(Order newOrder);
   
   /**
     * Gets the current loan size. 
     */
   public double getLoanSize();
   
   /**
     * Return the order size placed on the commercial loan market.
     */
   public double getCommercialLoanOrderSize();
   
   public StrategyBank getBank();
}