Skip to content
Snippets Groups Projects
Commit 7a732301 authored by a11941866's avatar a11941866
Browse files

added flowcharts

parent 46b8c4a1
No related merge requests found
Pipeline #13335 passed with stages
in 30 seconds
......@@ -47,7 +47,7 @@ def mock_car():
randomCarID = random.randint(10000,99999)
carLocations = ["A", "B", "C", "D", "E", "F", "G" ,"H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X"]
randomCarLocation = random.choice(carLocations)
carTypes = ["motorbike", "normal", "limo", "eco", "sports", "mini", "van", "N.A"]
carTypes = ["motorbike", "normal", "limo", "eco", "sports", "mini", "van"]
randomCarType = random.choice(carTypes)
carPriceRanges = ["low", "normal", "high"]
randomCarPriceRange = random.choice(carPriceRanges)
......@@ -87,7 +87,7 @@ def match():
cityPartOne = ["A","B","C","D","E","F","G","H","I","J","K","L"]
cityPartTwo = ["M","N","O","P","Q","R","S","T","U","V","W","X"]
importantDestinations = ["party", "business meeting", "wedding"]
importantDestinations = ["party", "businessmeeting", "wedding"]
normalDestinations = ["school", "work", "appointment"]
unimportantDestinations = ["park", "shop", ""]
......@@ -312,7 +312,7 @@ def matching():
#rules on destination
ruleDestinationImportant =rule_engine.Rule(
'destination == "party" or destination == "business meeting" or destination == "wedding"'
'destination == "party" or destination == "businessmeeting" or destination == "wedding"'
)
ruleDestinationNormal =rule_engine.Rule(
......@@ -429,7 +429,7 @@ def testmatching():
citySectorThree = ["M","N","O","L"]
citySectorFour = ["H", "I", "J", "K"]
citySectorFive = ["V","S","R","Q","R","T","W","X", "U"]
importantDestinations = ["party", "business meeting", "wedding"]
importantDestinations = ["party", "businessmeeting", "wedding"]
normalDestinations = ["school", "work", "appointment"]
unimportantDestinations = ["park", "shop", "visit"]
......@@ -525,7 +525,7 @@ def testmatching():
#rules on destination
ruleDestinationImportant =rule_engine.Rule(
'destination == "party" or destination == "business meeting" or destination == "wedding"'
'destination == "party" or destination == "businessmeeting" or destination == "wedding"'
)
ruleDestinationNormal =rule_engine.Rule(
......@@ -599,4 +599,4 @@ def testmatching():
if __name__ == '__main__':
app.run(port=5031,host='0.0.0.0')
\ No newline at end of file
app.run(port=5031,host='0.0.0.0')
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment