Within an A* network, I sometimes have occasions where an operator is told to travel to an object that it cannot reach.
At the moment, the operator will travel as close as possible to the target, successfully drop off its flowitem, then continue as normal. Ideally, I would be able to do at least one of the following:
- Before tasking the operator to travel to the location, I want to have the ability to check if any valid path exists from the operator's current location to the target location.
- When an operator is given a command to travel to a location which it cannot reach, I want the transport operation to fail somehow. Any of these results would be fine:
- Stopping the model with an error message
- Stopping the operator either before or after it travels
- The operator getting stuck against a wall, unable to complete the travel
I am concerned that invalid behaviour could be possible and go unnoticed because I have no way to check if an A* travel is invalid, and if an invalid travel is commanded it does not cause any type of failure state.