jgraley / inferno-cpp2v

2 stars 0 forks source link

AgentQuery functor classes #37

Open jgraley opened 4 years ago

jgraley commented 4 years ago

Do after #25 and #87.

For legacy agents, DecidedQuery derives from DecidedQueryClientInterface and calls Agent::RunDecidedQuery() function with a pointer to itself.

For StandardAgent (and possibly others), move the entire DecidedQuery algorithm into a new subclass of DecidedQueryClientInterface. Then merge the classes, so you get an eg StandardAgentDecidedQuery class, derived from DecidedQuery in which the code as close as possible to the state.

jgraley commented 4 years ago

More:

Call AgentQuery::SetLocation() and you get the planned LocalQuery() output (#30), including possible local mismatch.

After that, decisions may be requested and choices supplied.