Search the web
Sign In
New User? Sign Up
aima-talk · AI: A Modern Approach: Help for the text
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problems with AIMA code QueueSearch   Message List  
Reply | Forward Message #843 of 868 |
Re: Problems with AIMA code QueueSearch


The code for QueueSearch begins as follows

"public abstract class QueueSearch .... "

The "abstract" keyword implies you cannot instantiate the class. You
need to instantiate one of its concrete subclasses (TreeSearch or
GraphSearch).

The demo and unit test classes have a dozen plus examples of how these
may be instantiated. The readme file explains the two hierarchies of
search and how they relate to each other.

"> I've tried several ways to instantiate it and I keep getting
> complaints from eclipse."

When this happens the next time, do try to understand what the error
message is trying to communicate. An attempt at doing this would have
exposed the "trying to instantiate an abstract class" error.

In other words, eclipse complains for a reason!



--- In aima-talk@yahoogroups.com, "inyourmind6684" <dtamayo@...> wrote:
>
> I'm looking to create a test file and successor function for BFS in
> the AIMA code. However, in order to instantiate a BFS I have to pass
> in a QueueSearch. I ran into the problem when trying to instantiate
> the QueueSearch. I know that QueueSearch extends the NodeExpander but
> I've tried several ways to instantiate it and I keep getting
> complaints from eclipse. Does anyone know how to create a QueueSearch
> so that eclipse doesn't complain?
>
> Thank you for your time.
>





Thu Sep 25, 2008 9:32 am

magesmail
Offline Offline
Send Email Send Email

Forward
Message #843 of 868 |
Expand Messages Author Sort by Date

I'm looking to create a test file and successor function for BFS in the AIMA code. However, in order to instantiate a BFS I have to pass in a QueueSearch. I...
inyourmind6684
Offline Send Email
Sep 25, 2008
9:27 am

The code for QueueSearch begins as follows "public abstract class QueueSearch .... " The "abstract" keyword implies you cannot instantiate the class. You need...
Ravi Mohan
magesmail
Offline Send Email
Sep 25, 2008
9:33 am

... Do we use the AIMA code examples, i.e. BFS and QueueSearch, for the exercises in the book? Or, are we supposed to define and implement all of the code for...
kiana
blacksilk79
Offline Send Email
Sep 29, 2008
4:48 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help