Forum: PogamutUT2004

Issue in SposhLogicController

Hi all, I'm running your tutorial, and I've opened the Pogamut example "sposh-prey-bot".

I got a lot of errors in the PreyLogic.java. The first one is in the definition of the class:


public class PreyLogic extends SposhLogicController {
...
}

it says "wrong number of type arguments; required 2"

Have u got some ideas? Thanks! :-)
The issue should be resolved adding IWorkExecutor as the second required parameter, so:

public class PreyLogic extends SposhLogicController {
....
}



> Hi all, I'm running your tutorial, and I've opened the Pogamut example "sposh-prey-bot".
>
> I got a lot of errors in the PreyLogic.java. The first one is in the definition of the class:
>
>
> public class PreyLogic extends SposhLogicController {
> ...
> }
>
> it says "wrong number of type arguments; required 2"
>
> Have u got some ideas? Thanks! :-)
Sorry the right declaration is:

public class PreyLogic extends SposhLogicController {
...
}

> Hi all, I'm running your tutorial, and I've opened the Pogamut example "sposh-prey-bot".
>
> I got a lot of errors in the PreyLogic.java. The first one is in the definition of the class:
>
>
> public class PreyLogic extends SposhLogicController {
> ...
> }
>
> it says "wrong number of type arguments; required 2"
>
> Have u got some ideas? Thanks! :-)
Ahhh, damn it, your text filtering deletes some part of the above declaration... Let's try with some tricks:

public class PreyLogic extends SposhLogicController UT2004Bot, IWorkExecutor {

instead of [ you should put <

:-)

> Hi all, I'm running your tutorial, and I've opened the Pogamut example "sposh-prey-bot".
>
> I got a lot of errors in the PreyLogic.java. The first one is in the definition of the class:
>
>
> public class PreyLogic extends SposhLogicController {
> ...
> }
>
> it says "wrong number of type arguments; required 2"
>
> Have u got some ideas? Thanks! :-)
oh no, is recognized with a link...

Well instead of UT2004bot you should put

UT2004bot, IWorkExecutor

> Hi all, I'm running your tutorial, and I've opened the Pogamut example "sposh-prey-bot".
>
> I got a lot of errors in the PreyLogic.java. The first one is in the definition of the class:
>
>
> public class PreyLogic extends SposhLogicController {
> ...
> }
>
> it says "wrong number of type arguments; required 2"
>
> Have u got some ideas? Thanks! :-)