Class TransportRelation

  • public class TransportRelation
    extends InterUnitRelation
    This relation indicates that the source unit is transporting the the target unit. Although the order semantics require a TRANSPORTIERE and FAHRE order for the carrier and each passenger, this relation does not enforce these semantics and is established by the TRANSPORTIERE order only.
    • Constructor Detail

      • TransportRelation

        public TransportRelation​(Unit origin,
                                 Unit source,
                                 Unit target,
                                 int line)
        Creates a new relation indicating that unit s transports unit t
        source - The source unit
        target - The target unit
        line - The line in the source's orders