Class PurchaseBookPlan


  • public class PurchaseBookPlan
    extends Plan
    The plan tries to purchase a book.
    • Constructor Detail

      • PurchaseBookPlan

        public PurchaseBookPlan()
    • Method Detail

      • body

        public void body()
        The body method is called on the instatiated plan instance from the scheduler.
        Specified by:
        body in class Plan
      • generateNegotiationReport

        protected void generateNegotiationReport​(Order order,
                                                 Tuple2<IBuyBookService,​java.lang.Integer>[] proposals,
                                                 double acceptable_price)
        Generate and add a negotiation report.