Tuesday, October 17, 2017

Set commands with conditions

An update to my idea. I have a syntax for the "set" command from BOBR:

set({where_am_I=>(X:place)},{optimal_action=>(A:action)},{where_am_I=>(Y:place)},1.0):-there_is_a_connection(X,Y),has_target(A,Y);

The condition (optional) follows ":-" like in Prolog. All the logical placeholders are declared with the class (in the example above X has class "place"). The condition in the example above is:

there_is_a_connection(X,Y),has_target(A,Y)

I imagine I will write an engine in Java that resolves the condition. This engine will be included in the Java code created by BOBR.

No comments:

Post a Comment