Giter Club home page Giter Club logo

basicsatnavsystem's Introduction

Build Status codecov.io

BasicSatNavSystem

Android (Java implementation) application of a simple route navigation system to guide a driver around a network of one way streets in a small town. After starting the application on your phone, you can input a start and destination point then click the buttons to find routes.

The app can:

  • Get the distance of a route
  • Find the shortest routes between two points
  • Find all possible routes between two points

NOTE: THE APPLICATION ONLY ACCEPTS CHARACTERS - 'A' 'B' 'C' 'D' 'E' AS INPUTS.

Video

Screen Shot

How to Test

JUnit tests are located under src/test/java.

Example test:

// Distance for route A-B-C
// Expected output 9
@Test
   public void testRouteDistanceCalculatorFirstCase() {
       // Prepare
       RoutePathLength routePathLengthCalculation = new RoutePathLength();
       List<String> routePath = new ArrayList<String>();
       // Route A-B-C
       routePath.add(A);
       routePath.add(B);
       routePath.add(C);

       String expected = "9";

       // Calculate route path distance
       String routeLength = routePathLengthCalculation.getRouteLength(directedDirectedGraph, routePath);

       // Assert
       Assert.assertEquals(expected, routeLength);
   }

See the test suite com.hulldiscover.zeus.basicsatnavsystem.UnitTestSuite to run all test at once.

Test cases that pass:

  1. Distance for route A-B-C. Expected output 9

  2. Distance for route A-D. Expected output 5

  3. Distance for route A-D-C. Expected output 13

  4. Distance for route A-E-B-C-D. Expected output 21

  5. Distance for route A-E-D. Expected output NO SUCH ROUTE

  6. The length of the shortest route (in terms of distance to travel) from A to C. Expected output 9

Pre-requisites

  • Android SDK v23
  • Android Build Tools v23.0.3
  • Android Support Repository

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

References

basicsatnavsystem's People

Contributors

sandboxdeveloper avatar

Watchers

James Cloos avatar  avatar

basicsatnavsystem's Issues

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.