Interface ISteward

  • All Known Implementing Classes:
    Steward

    public interface ISteward
    Interface defining the steward
    Author:
    Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 20, 2012
    • Method Detail

      • getExpertiseLevel

        int getExpertiseLevel()
        Retrieve the level of expertise of the steward
        Returns:
        level of expertise
      • upgradeToNextLevel

        void upgradeToNextLevel()
        Increase the experiance level by one. The highest level i 5.
      • getSalary

        int getSalary()
        Retrieve the weekly salary of the steward
        Returns:
        current sallery per week.
      • getTotalProfit

        int getTotalProfit()
        Retrieve the amount of profit the steward made. The profit defines when the next level is reached.
        Returns:
        total profit.
      • updateProfit

        void updateProfit​(int profit)
        Add the profit the total profit.
        Parameters:
        profit - additional profit to the total (may be negative)