pclarke91 / rl-viz

Automatically exported from code.google.com/p/rl-viz
Apache License 2.0
0 stars 0 forks source link

Implement a supports_x message #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For agents.  We should implement a supports_x message as follows.

x is a number that maps to an enumerated type.  That type maps to an
interface name.

For example, x==1 might map to supportsValueQueries.  

So then using our standard trick, we can make a general supports_x request
type that uses our regular strategy for "can handle automatically" and
"handle automatically".

Can Handle?
return (agent instanceof supportsQuerys.getType(x));

Not all of the kinks worked out yet, but basically we really want the value
function component to be able to ask the agent if it is supported, and if
not, we want to not use that component. I'm trying to think of a way that
will allow us to add new queries in the implementation without changing the
interface to RLVizLib.

Original issue reported on code.google.com by brian.ta...@gmail.com on 12 Dec 2007 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by brian.ta...@gmail.com on 13 Dec 2007 at 12:52

GoogleCodeExporter commented 9 years ago

Original comment by brian.ta...@gmail.com on 24 Jan 2008 at 7:18