Package org.plugtree.training.model

Examples of org.plugtree.training.model.Order


    Customer johnInternational = new Customer("John Z", CustomerType.INTERNATIONAL);
    Customer annaInternational = new Customer("Anna M", CustomerType.INTERNATIONAL);
    Customer maryInternational = new Customer("Mary C", CustomerType.NATIONAL);
    Customer jesseNational = new Customer("Jessy D", CustomerType.NATIONAL);

    Order internationalExpressOrder = new Order();
    internationalExpressOrder.setCustomer(johnInternational);
    internationalExpressOrder.setShipping(ShippingType.EXPRESS);
    internationalExpressOrder.setAmount(100);

    Order internationalUSPSOrderRejected = new Order();
    internationalUSPSOrderRejected.setCustomer(annaInternational);
    internationalUSPSOrderRejected.setShipping(ShippingType.USPS);
    internationalUSPSOrderRejected.setAmount(10);

    Order internationalUSPSOrderAccepted = new Order();
    internationalUSPSOrderAccepted.setCustomer(johnInternational);
    internationalUSPSOrderAccepted.setShipping(ShippingType.USPS);
    internationalUSPSOrderAccepted.setAmount(110);

    Order nationalStandardOrder = new Order();
    nationalStandardOrder.setCustomer(maryInternational);
    nationalStandardOrder.setShipping(ShippingType.STANDARD);
    nationalStandardOrder.setAmount(90.7f);

    Order nationalExpressOrder = new Order();
    nationalExpressOrder.setCustomer(jesseNational);
    nationalExpressOrder.setShipping(ShippingType.EXPRESS);
    nationalExpressOrder.setAmount(930);

    ksession.setGlobal("rejectedNational", rejectedNational);
    ksession.setGlobal("rejectedInternational", rejectedInternational);
    ksession.setGlobal("priorityCustomer", priorityCustomer);
View Full Code Here

TOP

Related Classes of org.plugtree.training.model.Order

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.