Class TransferRelation

    • Field Detail

      • amount

        public int amount
        The amount to transfer. This has to be a non-negative value based on the rest amount of the transfered object
    • Constructor Detail

      • TransferRelation

        public TransferRelation​(Unit source,
                                Unit target,
                                int amount,
                                int line)
        Creates a new TransferRelation object without warning.
        Parameters:
        source - The source unit
        target - The target unit
        amount - The amount to transfer.
        line - The line in the source's orders
      • TransferRelation

        public TransferRelation​(Unit origin,
                                Unit source,
                                Unit target,
                                int amount,
                                int line)
        Creates a new TransferRelation object.
        Parameters:
        origin - The origin unit
        source - The source unit
        target - The target unit
        amount - The amount to transfer.
        line - The line in the source's orders