Interface HTAmountSlot

  • All Implemented Interfaces:

    
    public interface HTAmountSlot<N extends Number, Comparable<N>>
    
                        

    量を搬入/搬出できることを表すインターフェースです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean isEmpty() このスロットが空かどうか判定します。
      abstract N insert(N amount, HTStorageAction action, HTStorageAccess access) このスロットに量を搬入します。
      abstract N extract(N amount, HTStorageAction action, HTStorageAccess access) このスロットから量を搬出します。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isEmpty

         abstract Boolean isEmpty()

        このスロットが空かどうか判定します。

      • insert

         abstract N insert(N amount, HTStorageAction action, HTStorageAccess access)

        このスロットに量を搬入します。

        Parameters:
        amount - 搬入する量
        action - 処理のフラグ
        access - このスロットへのアクセスの種類
        Returns:

        搬入される量

      • extract

         abstract N extract(N amount, HTStorageAction action, HTStorageAccess access)

        このスロットから量を搬出します。

        Parameters:
        amount - 搬出する量
        action - 処理のフラグ
        access - このスロットへのアクセスの種類
        Returns:

        搬出される量