Skip to content

Casuistry in the watchformover method that can lead to erroneous behaviors #4

@pableras1988

Description

@pableras1988

There is a situation where the Watchformover method in the station is not working it could be expected:

Imagine that in a initial situation we have 3 movers inside a station and the mover with index 2 in the array is going to be first one to leave the station.

Image

If they are not in the same order than in the movers array, the mover with the first index will enter the first one in the queue (because the FOR loop goes in order), so it will be the first mover in the queue and the CurrentMover, when the first would have to be the move with index 2...

Image

I think that we need an aditional condition to reorder the movers taking into account the positive movement within their current track.
Let me know what do you think about this.

Kind regards, thank you in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions