Giter VIP home page Giter VIP logo

inventorymanagementsystem-1's Introduction

Software Engineer Off-Site Problem

Introduction

Assume you are working on a new warehouse inventory management system named IMS. IMS will be responsible for the inventory tracking within physical, single site warehouses. IMS will track the named physical location of a product within the warehouse and the inventory level of each product. IMS will be deployed to busy warehouses supporting many pickers and restockers working with individual terminals and clients. Updates to inventory levels will be handled in real time to prevent pickers trying to pick a product that is out of stock.

Assumptions

Each product will be stored at one and only one named location within the warehouse. Inventory adjustments may be additive (restocks) or subtractive (picks) No additional product information needs to be tracked beyond location and level.

Problem

In Java, implement the picking and restocking routines for the IMS system. The InventoryManagementSystem interface will be the first component to be implemented, all relevant domain objects will have to be implemented. The InventoryManagementSystem interface has already been distributed to other teams which depend on it.

Deliverables

Valid Java source code implementing the pickProduct and restockProduct methods of the InventoryManagementSystem interface. A compilable java application containing any additional artifacts and/or domain classes used to solve the problem.

/**
 * Implementations of this interface must be thread-safe. Access to shared data must be
synchronized as methods of this
 * interface may be executed from multiple threads.
 * */
public interface InventoryManagementSystem {
 /**
 * Deduct 'amountToPick' of the given 'productId' from inventory.
 *
 * @param productId
 * @param amountToPick
 *
 * @return to be implemented
 */
 PickingResult pickProduct(String productId, int amountToPick);
 /**
 * Add 'amountToRestock' of the given productId to inventory.
 *
 * @param productId
 * @param amountToRestock
 *
 * @return to be implemented
 */
 RestockingResult restockProduct(String productId, int amountToRestock);
 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.