package nl.tudelft.simulation.dsol.tutorial.section25; /** * The Order class as presented in section 2.5 in the DSOL tutorial.. *

* Copyright (c) 2002-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Peter Jacobs */ public class Order { /** the product of an order. */ private String product = null; /** the amount of product to order. */ private double amount = Double.NaN; /** * constructs a new Order. * @param product String; the product * @param amount double; the amount to buy */ public Order(final String product, final double amount) { super(); this.product = product; this.amount = amount; } /** {@inheritDoc} */ @Override public String toString() { return "Order[" + this.product + ";" + this.amount + "]"; } }