[Pogamut-list] Own A* (originally posted by jakub.gemrot)

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Wed Apr 28 20:18:11 CEST 2010


Re: Re: Own A* (originally posted by jakub.gemrot)

Author: jakub.gemrot

Yes, singleton would work too, but the parametrization is worse problem.

Technically - we're working with Guice and Guice allows you to inject arbitrary object to arbitrary constructed object.
My idea is to pass arbitrary "descendant of some IAgentParameters" object to the bot's factory (as optional argument)
that would allow anybody to pass arbitrary configuration object into the bot.

Such object could be instantiated from the property file then (for instance)...

Would it suffice for you to have UT2004BotRunner with method startAgent(myConfigObject) ?

Cheers,
Jakub

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=113&post_reply=1#form>





More information about the Pogamut-list mailing list