Giter VIP home page Giter VIP logo

oop_first_project's Introduction

OOP_First_Project

Our project is able to take csv file and export to kml file according to different filter types. Our project works with Wiggle Wifi export file only. Our project is devided to different class and each class has JunitTest class which verifies the currectness of every function.

Function:

  • Network - the Network class is reciving the names of the parameters of the csv file and orginazing them as we were asked.

  • ReadCsv - the ReadCsv class uses List of List of Network (by the class above) to read from csv file that we give to it and orginaize the parameters as we were asked. The function "ReadCsv" uses Strings in order to write the file properly.

  • WriteCsv - the WriteCsv class uses the List of List of Network as in ReadCsv and BufferedWriter to create a CSV file/

  • csvFilter - the csvFilter is divided to types of filters for each parameter:

1. filter By MAC or SSID - the fenction gets String MAC or SSID ans String parameter and filter the file, 
the functuon returns csv file after the filter.
2.filter By ID - the fenction gets String ID ans String parameter and filter the file, 
the functuon returns csv file after the filter.
3. filter By Time - the fenction gets String start and String end and filter the file from the time start 
to the time end, the functuon returns csv file after the filter.            
4.The function "All" - the fenction uses FileReader BufferedReader to create the file completley.
  • WriteKml - the WriteKml class gets csv file after filter and uses "JAK" libraries in order to create KML file with time stamp.

How to use it - Example

public static void main(String[] args) throws IOException {
		/*ReadCsv gets csv file from WiggleWif only (path to file or folder)*/
		ReadCsv file = new ReadCsv("Test");
		/*WriteCsv gets List<List<Network>> ,which provided by ReadCsv file.*/
		WriteCsv write = new WriteCsv(file.get_fileTable());
		/*Build csvFilter and then use one of the filters, but it's possible to use it directly*/
		csvFilter filter = new csvFilter();
		filter.All("final_csv.csv");
		/*The class gets List<String []> ,HashMap<String, Integer> which provided by Filter*/
		WriteKml kml = new WriteKml(filter.getFile(),filter.getKeyIndex());
		/*Kml crated (with time stamp)*/

	}

oop_first_project's People

Contributors

adiachwal122 avatar matufa avatar

Watchers

 avatar

oop_first_project's Issues

MySql

Add MySql database, local and remote server

Improvments

Upgrade the csvRead in order to read from tables that are not from Wiggle as requested.
Including tables with and without heather by adding classes.
Write unit test for all of the classes.
Updating GUI as requested to match the filters in our project.

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.