Code Monkey home page Code Monkey logo

elevator-simulator's Introduction

Elevator Simulator

Building and Executing

This Java project is built with Apache Maven. Additionally, a Makefile is also provided for convenience. Before building this project, please ensure Maven is installed on the system. Optionally, GNU Make can be helpful to simplify the Maven and JRE commands.

To build the program, use Maven CLI:

$ mvn clean package

or

$ make

This will build the project to a jar file located in the target directory of the project root.

For simple execution without any command line arguments, run

$ java -cp target/elevator-sim-1.0-SNAPSHOT.jar io.yiyuzhou.app.App

or

$ make run

Usage

There are two command line arguments allowed:

  • A path to the property file.
  • A verbose flag for additional debug information.

For example, assuming you are on a standard GNU/Linux distribution. Your user name is foo, and there exists a property file called bar at location /home/foo/Documents/bar. You can run the program with that file path as one of the arguments:

$ java -cp target/elevator-sim-1.0-SNAPSHOT.jar io.yiyuzhou.app.App /home/foo/Documents/bar

Please note that the UNIX style "shortcut" ~, denoting the home directory will not work. This is due to a limitation of Java's File object implementation.

Likewise, the verbose flag would help you to debug by outputting some useful information to the shell.

$ java -cp target/elevator-sim-1.0-SNAPSHOT.jar io.yiyuzhou.app.App -v

or

$ make verbose

elevator-simulator's People

Contributors

yzhou216 avatar

Watchers

 avatar

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.