Posted by: lljkkennedy | March 29, 2010

Bug: Agent appends preconditions onto existing ones

The Agent, during the updateState function, appends the predicates onto the current state list even if they already exist.

Fix: 2 possible, either traverse the list comparing the new precondition to the existing ones and drop it if exists already, or simply clear the list every think and repopulate it. As the preconditions are regenerated each think, it makes more sense to drop the list and rebuilt it instead of wasting computing time checking against existing ones.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: