myrobotlab icon indicating copy to clipboard operation
myrobotlab copied to clipboard

Make Random service take a list of RandomMessages in the config instead of a hash map.

Open kwatters opened this issue 3 years ago • 3 comments

kwatters avatar Feb 08 '22 03:02 kwatters

What ? - I suspect this should be closed. What would be the point of a list ?

supertick avatar Jul 09 '22 06:07 supertick

My concern was that the key is used as the name of the service for the target of the random message. This means, that you can only invoke one method on a given service with this. If the randomData member in Random.java was a list instead, this limitation would not exist.

kwatters avatar Nov 30 '22 16:11 kwatters

yep .. heh already ran into this problem :) My preference is that it stays a string key though, and is left to the consumer to provide a unique description

supertick avatar Nov 30 '22 16:11 supertick