Closed sync-by-unito[bot] closed 4 months ago
➤ Zdenek Plesek commented:
The following is a list of issues as observed on 08/12/2023 \@ 00:02 on the buildings-edges-travellers-merge branch
Validation Errors in [Traveller.cs]
➤ Scott DeVerinne commented:
zp235 Confusion on where its placement should be, as it is labelled ‘Edge Functionality Extension’ on its Trello card
This class is used to represent any entity travelling from a start building to a destination. It has been built in a flexible manner, so that it can represent different vehicles (cars, bikes, bus, truck, etc… ), and walkers. It
Private attributes:
PreviousPaths - list of pointers to paths.Public attributes:
Functionality:
In the case that the traveller cannot move forward due to congestion, it will move whatever it can, and after the tick completes its postion in the edge queue will update. This should happen organically due to the order of execution of events (travellers should only move once travellers ahead of them in an edge queue have moved), the traveller should subscribe (using said function) to that edge, attributes being updated where necessary (and leave current edge, using the unsubscribe function). In the case that the travellers has reached the end of the street, the next edge must be selected from the path. This is an oppurtunity to represent human decisions by letting the traveller “decide” to traverse a different edge is the one they intend on joining is too busy. This approach would require the route to be recalculated. In the case the traveller has reached their destination, relevant attributes must be updated, and the vehicle must be added to the terminal building vehicle pool, and its occupancy updated. Finally, the position of the underlying object must be moved to its new, calculated value. (latex is: $pos = A_d+B_(1-d).)
Specified by: Ted Proctor
Implemented by: Scott DeVerinne
Validated by:
┆Issue is synchronized with this Trello card by Unito ┆Attachments: Edge.cs: