Interface IWorkShop

  • All Superinterfaces:
    IBuilding

    public interface IWorkShop
    extends IBuilding
    This interface represents a workshop, which employs workers
    Author:
    Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 22, 2012
    • Method Detail

      • getWorkers

        int getWorkers()
        Retrieve the number of workers in the shop
        Returns:
        numer of workers
      • getMaxWorkers

        int getMaxWorkers()
        Retrieve the number of workers maximal employable by this shop
        Returns:
        max number of workers
      • getSalaryPerWorker

        int getSalaryPerWorker()
        Retrieve the salary a worker earns within a week
        Returns:
        salery per worker and per week
      • getProducableWare

        IWare getProducableWare()
        Retrieve the ware this workshop produces.
        Returns:
        ware that is produce by the workshop
      • getStorage

        ProductionStorage getStorage()
        Retrieve the storage of the workshop.
        Returns:
        Production storage associated with the workshop
      • isProducingEfficienty

        boolean isProducingEfficienty()
        Indicating if the produced ware is produced efficiently in the city.
        Returns:
        true if the workshop produces the ware efficiently