Skip to main content

A python client library used to get a quick overview between the different libraries of g09_CPS_relocation.

Project description

CPS relocation

We are Group9 and in the following we'll give you an instruction of how to use our CPS relocation implementation.

Setup

Use the package manager pip to install the necessary modules.

First, clone the repository to your local system. On PyPi you can find the pip statement to install all necessary modules within your project automatically.

pip install g09-cps-relocation==1.0.0

Alternatively, you can install the modules one by one.

pip install paramiko
pip install Owlready2
pip install Flask
pip install flaskwebgui
pip install Werkzeug
pip install rdflib

For some cases we figured out that a html-library is necessary for running the code. However, this might be optional for you:

pip install requests

Relocation

In general, you have to think yourself into two views:

  1. CPS point of view
  2. Passenger point of view (the guy who enters the CPS on a certain location)

By running the "main.py" in the folder "Implementation" you'll get an overview of the available points of interest. It is now up to you to give the CPS1 and CPS2 a starting position (= input in terminal). This human input is necessary to a.) get the relocation process running and b.) continue the process when a CPS has dropped of a passenger. Afterwards, each CPS decides individually based on its character where the relocation should be.

Ontology

Every decision of the CPS is based on their individual ontology. You can find the written .owl files in the folder "Ontologies". For just in time access, the ontologies are positioned on the Apache2 server under following links:

Using Flask

By running the the "app.py" a link in output console will appear. The URL will probably look like the following: "http://127.0.0.1:1337/". When you open this link your web browser will open and you are confronted with our GUI. From here on you act as from the passengers point of view. Just imagine to order a CPS, go to the CPS and let the CPS drive you to your destination. While you are driving to your destination you have enough time to fill out the survey about rating the pickup location which you started previously by running "app.py". Depending on how good or bad your ranking will be, the CPS will choose your pickup location next time again for his relocation.

TechTalk: by entering the survey data about a pickup location, the ontologies that form the CPS characters will update. This enables us to give the CPS an intelligent character trait.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

g09_cps_relocation-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

g09_cps_relocation-1.0.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file g09_cps_relocation-1.0.0.tar.gz.

File metadata

  • Download URL: g09_cps_relocation-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.8

File hashes

Hashes for g09_cps_relocation-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4dd962deaf7785c5fd6207b3e0b127beb1e728fd8eeac922092c8a22a237d004
MD5 dda65e90802aab1b2a194c03288a838e
BLAKE2b-256 a907fc3c87e4247319d41a778982d38d3e766eac8af182d32de05f92323286aa

See more details on using hashes here.

File details

Details for the file g09_cps_relocation-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: g09_cps_relocation-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.8

File hashes

Hashes for g09_cps_relocation-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e0c868e1f945afef993a82dcb2bf3cb5c4b86df5e9ecd62b4fc516fdfff0e0
MD5 6dfc44094c1255d23c18c4fb781a2eca
BLAKE2b-256 126f82dcbf188858d1e98f872d21d5b0fb47c9129147bb0eba2150c949663c53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page