Scripting trip to Poland & Ukraine











# Theme of Script:
[Changing edge conditions]
Traveling from Xd, X to Zk, Z passing through Yw, Y and back to X
; where X= Germany, Xd= Dessau
Y= Poland, Yw= Warsaw
Z= Ukraine, Zk= Kiev

# Targets
T1: Starting Date of trip
[28th April, 2008]
T2: Z
[Zk] ; where Zk= Kiev
T3: Reached Z
[1st May, 2008]
T4: Back to Xd ; where Xd= Dessau
[7th May, 2008]

# Traveling modes
[α, β, γ, λ ] ; where α=Rent a Van, β=Walk, γ=Air plane, λ=train
# Starting point of trip
[Xd]

# End point of trip
[Xd]

# Generate Lists:

L1: List Countries to travel
[X, Y,Z] ; where X= Germany, Y= Poland, Z= Ukraine

L2: List cities of X along Y border
[x1, x2, x3,........................................................]

L3: List cities of Y along X border
[y1, y2, y3 ………………………………….…….]

L4: List cities of Y along Z border
[yz1, yz2, yz3 …………………………….…….]

L5: List cities of Z along Y border
[z1, z2, z3 ……………………………..….…….]

L6: List cites of Y which satisfy criteria ; where criteria=historical importance, monuments
[p1, p2, p3 ……………………………………….]

L7: List High Ways in X
[Xa1, Xa2, Xa3, …………………………..…….]

L8: List High Ways in Y
[Ya1, Ya2, Ya3, …………………………..…….]

L9: List cites from High Way a2 in Y
[a2.1, a2.2, a2.3, ………………………………]

L10: List of cities from high way a4 in Y
[a4.1, a4.2, a4.3, ………………………………]

L11: List High Ways in Z
[Za1, Za2, Za3, …………………………..…….]

# Attributes: R,R & R
Routes:
Start from Xd
Reached to x1 using L7 by α;
else ignore
Move along L2 using L6 that satisfy criteria
else ignore
Use L8 and L9 to reach Yw
else ignore
also stop to cities at L9 using L6 that satisfy criteria.
else ignore
If L8 ends to certain location take the shortest possible path to the next location using L6.
Use L11 to reached to Zk
Routine Activity:
Use β from city centre to the old city wall using L6
Stay 30 minutes there
If doesn’t exit go to historical monuments using L6
also if feel tired take a break and have lunch.
Else, nothing important within 4 km take a van to reach required space.
If it’s getting dark move to the city where hotel is booked.
Have dinner.
Go to sleep.
Return Journey
Use γ to reach back to Xb ; where Xb=Berlin
Use α or λ to reached back to Xd




No comments: